Fix g_rec_mutex_trylock

This commit is contained in:
Matthias Clasen 2011-09-22 21:58:28 -04:00
parent 295af777e4
commit 9de564bf1f

View File

@ -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 */