Don't lock if depth is zero. (#310148, Wim Taymans)

2005-07-12  Matthias Clasen  <mclasen@redhat.com>

	* glib/gthread.c (g_static_rec_mutex_lock_full): Don't lock
	if depth is zero.  (#310148, Wim Taymans)
This commit is contained in:
Matthias Clasen 2005-07-12 16:56:51 +00:00 committed by Matthias Clasen
parent 91c0bbaba5
commit 392980c783
5 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-07-12 Matthias Clasen <mclasen@redhat.com>
* glib/gthread.c (g_static_rec_mutex_lock_full): Don't lock
if depth is zero. (#310148, Wim Taymans)
2005-07-10 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_listenv): Ignore anomalous environment

View File

@ -1,3 +1,8 @@
2005-07-12 Matthias Clasen <mclasen@redhat.com>
* glib/gthread.c (g_static_rec_mutex_lock_full): Don't lock
if depth is zero. (#310148, Wim Taymans)
2005-07-10 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_listenv): Ignore anomalous environment

View File

@ -1,3 +1,8 @@
2005-07-12 Matthias Clasen <mclasen@redhat.com>
* glib/gthread.c (g_static_rec_mutex_lock_full): Don't lock
if depth is zero. (#310148, Wim Taymans)
2005-07-10 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_listenv): Ignore anomalous environment

View File

@ -1,3 +1,8 @@
2005-07-12 Matthias Clasen <mclasen@redhat.com>
* glib/gthread.c (g_static_rec_mutex_lock_full): Don't lock
if depth is zero. (#310148, Wim Taymans)
2005-07-10 Matthias Clasen <mclasen@redhat.com>
* glib/gutils.c (g_listenv): Ignore anomalous environment

View File

@ -335,6 +335,9 @@ g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
if (!g_thread_supported ())
return;
if (depth == 0)
return;
G_THREAD_UF (thread_self, (&self));
if (g_system_thread_equal (self, mutex->owner))