diff options
author | Sebastian Wilhelmi <wilhelmi@ira.uka.de> | 1999-11-16 10:30:25 +0000 |
---|---|---|
committer | Sebastian Wilhelmi <wilhelmi@src.gnome.org> | 1999-11-16 10:30:25 +0000 |
commit | 760a7ceef2b85c64a52e1d6c0153c3b1f397fb8d (patch) | |
tree | 6c8d556864ffe39286f9e9060e23e57521d75354 /glib.h | |
parent | f0f028abd2df8255a68165c11d22e0433b600fdf (diff) | |
download | glib-760a7ceef2b85c64a52e1d6c0153c3b1f397fb8d.tar.gz |
Renamed GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
1999-11-16 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
* acconfig.h, config.h.win32.in, configure.in: Renamed
GLIB_SIZEOF_PTHREAD_T to GLIB_SIZEOF_SYSTEM_THREAD to reflect
changed meaning.
* configure.in: Cope with systems, that have a pthread_t type,
that is not a pointer. Hint from Karl Nelson
<kenelson@ece.ucdavis.edu>. Define GLIB_SIZEOF_SYSTEM_THREAD to 4
for Solaris. Cope with systems, that have no default mutex
initialize, like obviously most DCE systems.
* glib.h, gthread.c: Changed the prototype of thread_create and
thread_self to return the system thread into provided memory
instead of a return value. This is necessary, as HPUX has a
pthread_t, that is bigger than the biggest integral type there.
* gthread.c: system_thread is no longer a pointer, but an memory
area of size GLIB_SIZEOF_SYSTEM_THREAD. Changed the
zeroinitialization and the tests for zeroness accordingly.
Diffstat (limited to 'glib.h')
-rw-r--r-- | glib.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2934,18 +2934,19 @@ struct _GThreadFunctions gpointer (*private_get) (GPrivate *private_key); void (*private_set) (GPrivate *private_key, gpointer data); - gpointer (*thread_create) (GThreadFunc thread_func, + void (*thread_create) (GThreadFunc thread_func, gpointer arg, gulong stack_size, gboolean joinable, gboolean bound, - GThreadPriority priority); + GThreadPriority priority, + gpointer thread); void (*thread_yield) (void); void (*thread_join) (gpointer thread); void (*thread_exit) (void); void (*thread_set_priority)(gpointer thread, GThreadPriority priority); - gpointer (*thread_self) (void); + void (*thread_self) (gpointer thread); }; GUTILS_C_VAR GThreadFunctions g_thread_functions_for_glib_use; |