diff options
author | Tor Lillqvist <tml@src.gnome.org> | 1999-06-20 22:20:43 +0000 |
---|---|---|
committer | Tor Lillqvist <tml@src.gnome.org> | 1999-06-20 22:20:43 +0000 |
commit | be80f9a106b1560447a7312480045960e521e728 (patch) | |
tree | 458f96576bb620cba653da790774a9b82f4391d3 /gthread | |
parent | 5452cb1518289b10c83d6065ca239f8ecf0e9f6c (diff) | |
download | glib-be80f9a106b1560447a7312480045960e521e728.tar.gz |
Update the pthreads snapshot version we want. Advice how to hand-expand
* README.win32: Update the pthreads snapshot version we want.
Advice how to hand-expand the makefile.*.in files.
* config.h.win32.in: Define values needed by Sebastian Wilhelmi's
new thread stuff.
* glib.def: Add new functions.
* glibconfig.h.win32.in: Update the pthreads snapshot version.
Fix typo.
* gthread.c: Include config.h, guard inclusion of unistd.h. When
using gcc on Win32, g_thread_functions_for_glib_use must be marked
for export here, too.
* gtimer.c: Implement g_usleep on native Win32 using Sleep (which
only has millisecond granularity, though).
* makefile.cygwin.in
* makefile.msc.in: Update pthreads snapshot version. File
name changes. Remove testgthread.
* tests/makefile.cygwin.in
* tests/makefile.msc.in: Add thread-test. Link with gthread lib.
* gthread-posix.c: Guard pthread_attr_setscope call with test
for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined
in a <pthread.h> that supports that feature.
Diffstat (limited to 'gthread')
-rw-r--r-- | gthread/ChangeLog | 6 | ||||
-rw-r--r-- | gthread/gthread-posix.c | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/gthread/ChangeLog b/gthread/ChangeLog index 51075f5a1..be3bb0fc5 100644 --- a/gthread/ChangeLog +++ b/gthread/ChangeLog @@ -1,3 +1,9 @@ +1999-06-21 Tor Lillqvist <tml@iki.fi> + + * gthread-posix.c: Guard pthread_attr_setscope call with test + for _POSIX_THREAD_PRIORITY_SCHEDULING, which should be defined + in a <pthread.h> that supports that feature. + 1999-06-17 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread-posix.c, gthread-solaris.c: Added the native diff --git a/gthread/gthread-posix.c b/gthread/gthread-posix.c index e7c9462e0..079f05b7c 100644 --- a/gthread/gthread-posix.c +++ b/gthread/gthread-posix.c @@ -245,9 +245,12 @@ g_thread_create_posix_impl (GThreadFunc thread_func, posix_check_for_error (pthread_attr_setstacksize (&attr, stack_size)); #endif /* HAVE_PTHREAD_ATTR_SETSTACKSIZE */ +#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING if (bound) posix_check_for_error (pthread_attr_setscope (&attr, PTHREAD_SCOPE_SYSTEM)); +#endif + posix_check_for_error( pthread_attr_setdetachstate( &attr, joinable ? PTHREAD_CREATE_JOINABLE : PTHREAD_CREATE_DETACHED ) ); |