Changed the last pthread_cond_init to pthread_attr_init.
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Fri, 18 Dec 1998 09:20:52 +0000 (09:20 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Fri, 18 Dec 1998 09:20:52 +0000 (09:20 +0000)
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.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
gthread/ChangeLog
gthread/testgthread.c

index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index c3b2934961c3bcc97e60e8a1166817eb2b05a2e4..4f3324df2a2faa604f1e35b2ace135db4f3693ae 100644 (file)
@@ -1,3 +1,8 @@
+1998-12-18  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>
+
+       * configure.in (have_threads): Changed the last pthread_cond_init
+       to pthread_attr_init.
+
 Fri Dec 18 00:03:17 1998  Tim Janik  <timj@gtk.org>
 
        * glib.h: 
index d864b3e082a80eadcaa170d2b759edcb3d2a30be..6dbf7bb4ca1d7418211b936850d49bb98b3d2e14 100644 (file)
@@ -572,9 +572,6 @@ if test "x$want_threads" = xyes || test "x$want_threads" = xposix; then
                AC_CHECK_LIB(pthreads, pthread_attr_init, have_threads=posix)
        fi
         if test "x$have_threads" = xnone; then
-               # dont let us be fooled by a defined pthread_cond_init
-               # function in the standard c-lib, that doesn't have too mean, 
-               # there is full thread support, it might be a weak symbol.
                AC_CHECK_FUNC(pthread_attr_init, have_threads=posix)
        fi
 fi
@@ -609,7 +606,7 @@ case $have_threads in
                                G_THREAD_LIBS="-lpthreads")
                fi
                if test "x$G_THREAD_LIBS" = xerror; then
-                       AC_CHECK_FUNC(pthread_cond_init, G_THREAD_LIBS="")
+                       AC_CHECK_FUNC(pthread_attr_init, G_THREAD_LIBS="")
                fi
                 ;;
         solaris)
index 08509b87a66e300a358fb4f1846dc392ab39ae52..0a20f089b06c8cd3de43cc78c410bcfea645175b 100644 (file)
@@ -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)
index f6445ac1c0e318b4d3531e1102ce70bb367a7b51..b71116fe3b3943123e32dba45a4e05d03ce27034 100644 (file)
@@ -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);
 }