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:
bec571d
)
Make the rec mutex test a little more verbose
author
Matthias Clasen
<mclasen@redhat.com>
Fri, 23 Sep 2011 11:26:33 +0000
(07:26 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 24 Sep 2011 01:11:10 +0000
(21:11 -0400)
glib/tests/rec-mutex.c
patch
|
blob
|
history
diff --git
a/glib/tests/rec-mutex.c
b/glib/tests/rec-mutex.c
index
055ab07
..
9ade360
100644
(file)
--- a/
glib/tests/rec-mutex.c
+++ b/
glib/tests/rec-mutex.c
@@
-83,7
+83,6
@@
acquire (gint nr)
{
if (g_test_verbose ())
g_print ("thread %p going to block on lock %d\n", self, nr);
-
}
g_rec_mutex_lock (&locks[nr]);
@@
-97,6
+96,9
@@
acquire (gint nr)
g_assert (owners[nr] == self); /* hopefully this is still us... */
+ if (g_test_verbose ())
+ g_print ("thread %p recursively taking lock %d\n", self, nr);
+
g_rec_mutex_lock (&locks[nr]); /* we're recursive, after all */
g_assert (owners[nr] == self); /* hopefully this is still us... */