diff options
Diffstat (limited to 'gthread/testgthread.c')
-rw-r--r-- | gthread/testgthread.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gthread/testgthread.c b/gthread/testgthread.c index 2eb5b4861..72874ccbc 100644 --- a/gthread/testgthread.c +++ b/gthread/testgthread.c @@ -15,7 +15,7 @@ test_mutexes (void) GMutex *mutex = NULL; GCond *cond = NULL; GStaticMutex static_mutex = G_STATIC_MUTEX_INIT; - G_LOCK_DECLARE (test_me); + G_LOCK_DEFINE (test_me); if (g_thread_supported ()) { @@ -26,8 +26,8 @@ test_mutexes (void) g_mutex_lock (mutex); g_mutex_unlock (mutex); - g_static_mutex_lock (static_mutex); - g_static_mutex_unlock (static_mutex); + g_static_mutex_lock (&static_mutex); + g_static_mutex_unlock (&static_mutex); g_cond_signal (cond); g_cond_broadcast (cond); |