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 /glibconfig.h.win32.in | |
parent | 5452cb1518289b10c83d6065ca239f8ecf0e9f6c (diff) |
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 'glibconfig.h.win32.in')
-rw-r--r-- | glibconfig.h.win32.in | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/glibconfig.h.win32.in b/glibconfig.h.win32.in index a4aa9c1b3..a9bf191e8 100644 --- a/glibconfig.h.win32.in +++ b/glibconfig.h.win32.in @@ -117,6 +117,7 @@ typedef unsigned long long guint64; * int i; * pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER; * printf ("sizeof (pthread_mutex_t) = %d\n", sizeof (pthread_mutex_t)); + * printf ("sizeof (pthread_t) = %d\n", sizeof (pthread_t)); * printf ("PTHREAD_MUTEX_INITIALIZER = "); * for (i = 0; i < sizeof (pthread_mutex_t); i++) * printf ("%u, ", ((unsigned char *) &m)[i]); @@ -131,8 +132,8 @@ struct _GStaticMutex { struct _GMutex *runtime_mutex; union { - /* The size of the pad array should be sizeof (pthread_mutext_t) */ - /* This value corresponds to the 1999-04-07 version of pthreads-win32 */ + /* The size of the pad array should be sizeof (pthread_mutex_t) */ + /* This value corresponds to the 1999-05-30 version of pthreads-win32 */ char pad[4]; double dummy_double; void *dummy_pointer; |