From: Sebastian Wilhelmi Date: Wed, 26 Apr 2000 13:03:49 +0000 (+0000) Subject: Look for both pthread_create and pthread_join in the thread library. Some X-Git-Tag: GLIB_1_3_1~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f0e9f522c21228f05afd15696d74e7f285e1838e;p=platform%2Fupstream%2Fglib.git Look for both pthread_create and pthread_join in the thread library. Some 2000-04-26 Sebastian Wilhelmi * configure.in: Look for both pthread_create and pthread_join in the thread library. Some systems define one of them, but not both in libc. Arghh. Now we really start a thread and join it later and check, whether the thread to actually ran. --- diff --git a/ChangeLog b/ChangeLog index fd6f110..938c76b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index fd6f110..938c76b 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index fd6f110..938c76b 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index fd6f110..938c76b 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index fd6f110..938c76b 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index fd6f110..938c76b 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index fd6f110..938c76b 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index fd6f110..938c76b 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,10 @@ 2000-04-26 Sebastian Wilhelmi + * configure.in: Look for both pthread_create and pthread_join in + the thread library. Some systems define one of them, but not both + in libc. Arghh. Now we really start a thread and join it later and + check, whether the thread to actually ran. + * glib.h, gcache.c, gtree.c: Changed the 'value' parameter of g_cache_remove from gpointer to gconstpointer. Dito for the 'key' parameter of g_tree_lookup and g_tree_remove and the 'data' diff --git a/configure.in b/configure.in index 8f95f92..39f205f 100644 --- a/configure.in +++ b/configure.in @@ -758,13 +758,16 @@ case $have_threads in LIBS="$glib_save_LIBS $add_thread_lib" - AC_MSG_CHECKING(for pthread_create$IN) + AC_MSG_CHECKING(for pthread_create/pthread_join$IN) AC_TRY_RUN([#include - void* func(void* data) {} + int check_me = 0; + void* func(void* data) {check_me = 42;} main() { pthread_t t; - exit(pthread_create (&t, $defattr, func, - NULL)); + void *ret; + pthread_create (&t, $defattr, func, NULL); + pthread_join (t, &ret); + exit (check_me != 42); }], [AC_MSG_RESULT(yes) G_THREAD_LIBS="$add_thread_lib"