mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-02 07:23:41 +02:00
Fix g_rec_mutex_trylock
This commit is contained in:
@@ -277,7 +277,10 @@ g_rec_mutex_unlock (GRecMutex *mutex)
|
||||
gboolean
|
||||
g_rec_mutex_trylock (GRecMutex *mutex)
|
||||
{
|
||||
return pthread_mutex_trylock (g_rec_mutex_get_impl (mutex));
|
||||
if (pthread_mutex_trylock (g_rec_mutex_get_impl (mutex)) != 0)
|
||||
return FALSE;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/* {{{1 GRWLock */
|
||||
|
Reference in New Issue
Block a user