1
1998-12-11 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
3
* gthread/gthread-nspr.c, configure.in: Added new default thread
4
implementation on top of the mozilla nspr library.
6
* gmem.c, gmessaged.c, gthread/gthread.c, gthread/gthread-*.c:
7
Changed GStaticMutex and GStaticPrivate in gmem.c and gmessages.c
8
into GMutex and GPrivate resp. to make error reporting and use of
9
gmem possible in most (not all, though) gthread functions. Also
10
initialized the modules via new init functions.
12
* configure.in: Fixed syntax bug in definition of type
15
* gthread/testgthread.c: Updated to work with nspr, but see note
16
there for remaining problems.
18
1998-12-10 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
20
* gmutex.c, glib.h: Now abort, if a mutex/cond/private is
21
allocated before the thread system is set up.
23
* gthread/gthread.c (g_thread_init): Removed g_thread_try_init(),
24
as it is not necessary. Changed the error message. Corrected logic
25
for g_thread_use_default_impl.
27
* gmutex.c (g_mutex_init): Keep the thread private data array
28
after calling g_thread_init().
30
1998-12-09 Sebastian Wilhelmi <wilhelmi@ira.uka.de>
32
* gthread/testgthread.c (new_thread): Now also working for posix
33
threads; (wait_thread): Now a better implementation, that does not
36
* Made the thread related code follow GNU coding standard.
38
* Made a comment (HOLDS:) above each function, that expects the
39
given locks to be held.
41
* Changed try_lock to trylock throughout.
43
* glib.c: Eventually removed the #if 0'ed code for old GStaticMutex.
45
* glib.c: Corrected g_trylock macro for G_DEBUG_LOCKS.
47
* gmain.c (g_main_poll_add_unlocked): first take a new poll record
48
form the poll_free_list.
50
* gmem.c, gstrfuncs.c, gutils.c: Made it MT safe.
52
* gthraed/*.c: Added copyright headers.
54
* gthread/gthread-solaris.c: do not use g_log for errors, as g_log
55
uses these module and endless recursions might happen, just use a
56
plain fprintf(stderr,...).
58
* gthread/gthread.c (g_thread_try_init): Call g_mutex_init().
60
* gthread/testgthread.c: updated test program.
62
Tue Dec 8 18:49:56 1998 Owen Taylor <otaylor@redhat.com>
64
* Start at adding thread-safety. (mostly work
65
of Sebastian Wilhelmi <wilhelmi@ira.uka.de>)
67
- configure.in now looks for a system thread implementation.
68
Currently support is included for POSIX threads
69
and Solaris threads. The default support is built
70
into a separate library -lgthread.
72
- The thread implementation can be modified by passing
73
a vector of functions g_thread_init().
75
- The default or supplied functions are used to
76
implement a small set of thread functions for
77
mutexes, condition variables, and thread-private
80
- GLib now uses these functions to provide thread
81
safety. (In the sense that all global static
82
data is locked... individual structures must still
83
be locked by the caller.)
1
85
Sat Dec 12 19:08:59 1998 Tim Janik <timj@gtk.org>
3
87
* configure.in: always define G_HAVE_INLINE if __cplusplus is