summaryrefslogtreecommitdiff
path: root/gthread
diff options
context:
space:
mode:
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>1998-12-18 09:20:52 +0000
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>1998-12-18 09:20:52 +0000
commitab4b6454865f8a7faba3915faaab01b14a23d85c (patch)
treea484bfab3c6da875803c774c41319aaba999b8f3 /gthread
parent8be41eae4d0077069ecf77a8904b5f624d5ea5ff (diff)
downloadglib-ab4b6454865f8a7faba3915faaab01b14a23d85c.tar.gz
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.
Diffstat (limited to 'gthread')
-rw-r--r--gthread/ChangeLog6
-rw-r--r--gthread/testgthread.c4
2 files changed, 9 insertions, 1 deletions
diff --git a/gthread/ChangeLog b/gthread/ChangeLog
index 08509b87a..0a20f089b 100644
--- a/gthread/ChangeLog
+++ b/gthread/ChangeLog
@@ -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)
diff --git a/gthread/testgthread.c b/gthread/testgthread.c
index f6445ac1c..b71116fe3 100644
--- a/gthread/testgthread.c
+++ b/gthread/testgthread.c
@@ -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);
}