projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
295af77
)
Fix g_rec_mutex_trylock
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 23 Sep 2011 01:58:28 +0000
(21:58 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Fri, 23 Sep 2011 01:58:55 +0000
(21:58 -0400)
glib/gthread-posix.c
patch
|
blob
|
history
diff --git
a/glib/gthread-posix.c
b/glib/gthread-posix.c
index
e8028d8
..
c002e4c
100644
(file)
--- a/
glib/gthread-posix.c
+++ b/
glib/gthread-posix.c
@@
-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 */