mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-04 02:06:18 +01:00
Make the rec mutex test a little more verbose
This commit is contained in:
parent
bec571dc79
commit
dd002113f1
@ -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... */
|
||||
|
Loading…
Reference in New Issue
Block a user