gthread: avoid locking in _get_mutex_impl
authorWim Taymans <wim.taymans@collabora.co.uk>
Wed, 16 Sep 2009 15:39:48 +0000 (17:39 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 4 Jun 2011 01:42:51 +0000 (21:42 -0400)
commit496157ffd3350799198e32e1002a19fc8be3ea83
tree916287ed8dce4816d6bced23d06df97c9af026ae
parentfca330dafa9a77edc58a30b6128eaf466d4a2ba7
gthread: avoid locking in _get_mutex_impl

When getting the mutex implementation of a static mutex, avoid taking the global
lock every time but only take the lock when there was no mutex and we need to
create one.

https://bugzilla.gnome.org/show_bug.cgi?id=599954
glib/gthread.c