/* Calling g_mutex_unlock() on a mutex that is not locked by the current thread leads to undefined behaviour.  */
void g_mutex_unlock(GMutex *mutex)
/* Calling g_mutex_unlock() on a mutex that is not locked by the current thread leads to undefined behaviour.  */
void g_mutex_unlock(GMutex *mutex)
{
  gint status;
  if G_UNLIKELY ((status = pthread_mutex_unlock (g_mutex_get_impl (mutex))) != 0)
    g_thread_abort (status, "pthread_mutex_unlock");
}