mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
Look for both pthread_create and pthread_join in the thread library. Some
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * 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.
This commit is contained in:
parent
86627d9c7a
commit
f0e9f522c2
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
2000-04-26 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
|
||||||
|
|
||||||
|
* 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
|
* glib.h, gcache.c, gtree.c: Changed the 'value' parameter of
|
||||||
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
g_cache_remove from gpointer to gconstpointer. Dito for the 'key'
|
||||||
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
parameter of g_tree_lookup and g_tree_remove and the 'data'
|
||||||
|
11
configure.in
11
configure.in
@ -758,13 +758,16 @@ case $have_threads in
|
|||||||
|
|
||||||
LIBS="$glib_save_LIBS $add_thread_lib"
|
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 <pthread.h>
|
AC_TRY_RUN([#include <pthread.h>
|
||||||
void* func(void* data) {}
|
int check_me = 0;
|
||||||
|
void* func(void* data) {check_me = 42;}
|
||||||
main()
|
main()
|
||||||
{ pthread_t t;
|
{ pthread_t t;
|
||||||
exit(pthread_create (&t, $defattr, func,
|
void *ret;
|
||||||
NULL));
|
pthread_create (&t, $defattr, func, NULL);
|
||||||
|
pthread_join (t, &ret);
|
||||||
|
exit (check_me != 42);
|
||||||
}],
|
}],
|
||||||
[AC_MSG_RESULT(yes)
|
[AC_MSG_RESULT(yes)
|
||||||
G_THREAD_LIBS="$add_thread_lib"
|
G_THREAD_LIBS="$add_thread_lib"
|
||||||
|
Loading…
Reference in New Issue
Block a user