Added functions g_static_rec_mutex_init, g_static_rec_mutex_free,
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Tue, 13 Feb 2001 15:57:44 +0000 (15:57 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Tue, 13 Feb 2001 15:57:44 +0000 (15:57 +0000)
commit41e2001d85966ce3bd9133e49b070a00926bd6ea
tree6bb0a9ea4141246a9b1235cb3d143bef901e7f7c
parentcc0f6f0232e471031546faec64239cf91a2a4b83
Added functions g_static_rec_mutex_init, g_static_rec_mutex_free,

2001-02-13  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* gthread.c, gthread.h: Added functions g_static_rec_mutex_init,
g_static_rec_mutex_free, g_static_private_init,
g_static_private_free, g_static_rw_lock_init to allow the usage of
all those types dynamically. (g_static_rw_lock_free already
existed). Aditionally freed static_private indeces are reused
now. Untill now the array would just grow if you would use more
and more static_private. That required adding a slist of all
running threads, which could potentially be of good use later. It
is not exported however. Renamed a LOCK and small indentation
fixes.

* tests/thread-test.c: Test the new static_private index freing
and reusing feature.
13 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gthread.c
glib/gthread.h
gthread.c
gthread.h
tests/thread-test.c