mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-08 10:14:04 +02:00
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:
committed by
Matthias Clasen
parent
91c0bbaba5
commit
392980c783
@@ -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>
|
2005-07-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
||||||
|
@@ -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>
|
2005-07-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
||||||
|
@@ -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>
|
2005-07-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
||||||
|
@@ -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>
|
2005-07-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
* glib/gutils.c (g_listenv): Ignore anomalous environment
|
||||||
|
@@ -335,6 +335,9 @@ g_static_rec_mutex_lock_full (GStaticRecMutex *mutex,
|
|||||||
if (!g_thread_supported ())
|
if (!g_thread_supported ())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (depth == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
G_THREAD_UF (thread_self, (&self));
|
G_THREAD_UF (thread_self, (&self));
|
||||||
|
|
||||||
if (g_system_thread_equal (self, mutex->owner))
|
if (g_system_thread_equal (self, mutex->owner))
|
||||||
|
Reference in New Issue
Block a user