mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-19 16:37:52 +02:00
Changed the last pthread_cond_init to pthread_attr_init.
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * configure.in (have_threads): Changed the last pthread_cond_init to pthread_attr_init. 1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * testgthread.c (new_thread): As a joinable thread seems to be the default on posix, leave the explicit setting out, as it causes problems on some older platforms.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
8be41eae4d
commit
ab4b645486
@@ -1,3 +1,9 @@
|
||||
1998-12-18 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||
|
||||
* testgthread.c (new_thread): As a joinable thread seems to be the
|
||||
default on posix, leave the explicit setting out, as it causes
|
||||
problems on some older platforms.
|
||||
|
||||
Wed Dec 16 22:21:33 CST 1998 Shawn T. Amundson <amundson@gtk.org>
|
||||
|
||||
* gthread-posix.c: use g_free in mutex_free (from Tim Janik)
|
||||
|
@@ -79,7 +79,9 @@ new_thread(GHookFunc func, gpointer data)
|
||||
pthread_t thread;
|
||||
pthread_attr_t pthread_attr;
|
||||
pthread_attr_init (&pthread_attr);
|
||||
pthread_attr_setdetachstate (&pthread_attr, PTHREAD_CREATE_JOINABLE);
|
||||
/* This is the default, it seems, so leave that out for now
|
||||
pthread_attr_setdetachstate (&pthread_attr, PTHREAD_CREATE_JOINABLE);
|
||||
*/
|
||||
pthread_create (&thread, &pthread_attr, (void *(*)(void *)) func, data);
|
||||
return GUINT_TO_POINTER (thread);
|
||||
}
|
||||
|
Reference in New Issue
Block a user