Home | History | Annotate | Download | only in gthread

Lines Matching full:mutex

79 #define G_MUTEX_DEBUG_INFO(mutex) 					\
80 (((GMutexDebugInfo*)(((char*)mutex)+G_MUTEX_SIZE)))
97 g_mutex_lock_errorcheck_impl (GMutex *mutex,
101 GMutexDebugInfo *info = G_MUTEX_DEBUG_INFO (mutex);
108 g_error ("Trying to recursivly lock a mutex at '%s', "
112 g_thread_functions_for_glib_use_default.mutex_lock (mutex);
119 g_mutex_trylock_errorcheck_impl (GMutex *mutex,
123 GMutexDebugInfo *info = G_MUTEX_DEBUG_INFO (mutex);
130 g_error ("Trying to recursivly lock a mutex at '%s', "
134 if (!g_thread_functions_for_glib_use_default.mutex_trylock (mutex))
144 g_mutex_unlock_errorcheck_impl (GMutex *mutex,
148 GMutexDebugInfo *info = G_MUTEX_DEBUG_INFO (mutex);
155 g_error ("Trying to unlock an unlocked mutex at '%s'", loc);
158 g_warning ("Trying to unlock a mutex at '%s', "
165 g_thread_functions_for_glib_use_default.mutex_unlock (mutex);
169 g_mutex_free_errorcheck_impl (GMutex *mutex,
173 GMutexDebugInfo *info = G_MUTEX_DEBUG_INFO (mutex);
177 g_error ("Trying to free a locked mutex at '%s', "
181 g_thread_functions_for_glib_use_default.mutex_free (mutex);
186 GMutex *mutex,
190 GMutexDebugInfo *info = G_MUTEX_DEBUG_INFO (mutex);
197 g_error ("Trying to use an unlocked mutex in g_cond_wait() at '%s'", loc);
200 g_error ("Trying to use a mutex locked by another thread in "
206 g_thread_functions_for_glib_use_default.cond_wait (cond, mutex);
215 GMutex *mutex,
220 GMutexDebugInfo *info = G_MUTEX_DEBUG_INFO (mutex);
228 g_error ("Trying to use an unlocked mutex in g_cond_timed_wait() at '%s'",
232 g_error ("Trying to use a mutex locked by another thread in "
239 mutex,