Added errorcheck mutexes. These are activated through the preprocessor
authorSebastian Wilhelmi <wilhelmi@ira.uka.de>
Fri, 29 Sep 2000 13:10:41 +0000 (13:10 +0000)
committerSebastian Wilhelmi <wilhelmi@src.gnome.org>
Fri, 29 Sep 2000 13:10:41 +0000 (13:10 +0000)
commit7633908c9396ff0b45d3f09c898781adb4caab84
treec5671887638c8e913c0def6cfdeb6ce7a6ea68d9
parent349eaa6a256ac3ab33f3b8b98c4942dcdfa0df7f
Added errorcheck mutexes. These are activated through the preprocessor

2000-09-29  Sebastian Wilhelmi  <wilhelmi@ira.uka.de>

* configure.in, glib.h: Added errorcheck mutexes. These are
activated through the preprocessor symbol
G_ERRORCHECK_MUTEXES. Need to add an extra word to StaticMutex in
order to achieve this. g_(static_)mutex_* functions instrument the
mutex operations with mutex name and location, when compiled with
-DG_ERRORCHECK_MUTEXES. g_thread_init activates the errorcheck
mutexes, when compiled with -DG_ERRORCHECK_MUTEXES.

* gthread/gthread-impl.c: Added errorcheck mutexes. New
        exported function
        g_thread_init_with_errorcheck_mutexes, which is called instead of
g_thread_init, when compiled with -DG_ERRORCHECK_MUTEXES. New
static functions
g_mutex_(new|lock|trylock|unlock|free)_errorcheck_impl to
implement errorcheck mutexes.

* gthread/gthread-posix.impl.c, gthread/gthread-solaris-impl.c:
        Define the size of a mutex.
15 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
configure.in
glib.h
glib/glib.h
gthread/ChangeLog
gthread/gthread-impl.c
gthread/gthread-posix.c
gthread/gthread-solaris.c