mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 08:58:54 +02:00
Use GError to report errors as well.
2000-09-01 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-solaris.c (g_thread_create_solaris_impl): Use GError to report errors as well.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
64bbfbb6da
commit
4d1cb41ef9
@@ -287,13 +287,15 @@ g_thread_create_posix_impl (GThreadFunc thread_func,
|
||||
|
||||
posix_check_for_error (pthread_attr_destroy (&attr));
|
||||
|
||||
if (ret)
|
||||
if (ret == EAGAIN)
|
||||
{
|
||||
g_set_error (error, G_THREAD_ERROR, G_THREAD_ERROR_AGAIN,
|
||||
"Error creating thread: %s", g_strerror (ret));
|
||||
return;
|
||||
}
|
||||
|
||||
posix_check_for_error (ret);
|
||||
|
||||
#ifdef G_THREADS_IMPL_DCE
|
||||
if (!joinable)
|
||||
posix_check_for_error (pthread_detach (thread));
|
||||
|
Reference in New Issue
Block a user