mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-10-16 10:22:52 +02:00
Call g_thread_impl_init(), as g_thread_init won't call it.
2001-01-30 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gthread/gthread-impl.c (g_thread_init_with_errorcheck_mutexes): Call g_thread_impl_init(), as g_thread_init won't call it. * glib/glib-sections.txt, glib/tmpl/threads.sgml: Added g_static_mutex_free * gthread.c, gthread.h: Added g_static_mutex_free to allow using GStaticMutexes with limited lifetime without leaking. * configure.in: GStaticMutex doesn't have to provide extra space for debugging information for G_ERRORCHECK_MUTEXES, as then the non-default implementation (runtime_mutex) is used anyway.
This commit is contained in:
committed by
Sebastian Wilhelmi
parent
1f46d9f68f
commit
f9dfcb27b7
@@ -227,6 +227,7 @@ void g_thread_set_priority (GThread *thread,
|
||||
g_mutex_trylock (g_static_mutex_get_mutex (mutex))
|
||||
#define g_static_mutex_unlock(mutex) \
|
||||
g_mutex_unlock (g_static_mutex_get_mutex (mutex))
|
||||
void g_static_mutex_free (GStaticMutex *mutex);
|
||||
|
||||
struct _GStaticPrivate
|
||||
{
|
||||
|
Reference in New Issue
Block a user