mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 07:56:17 +01:00
Fix g_rec_mutex_trylock
This commit is contained in:
parent
295af777e4
commit
9de564bf1f
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user