[glib/wip/notify-performance: 4/11] [notify] lift some code outside of critical region
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/notify-performance: 4/11] [notify] lift some code outside of critical region
- Date: Wed, 16 Nov 2011 15:49:26 +0000 (UTC)
commit 528d09cd1467e3fb209f5f89b4550d94e50cb82d
Author: Ryan Lortie <desrt desrt ca>
Date: Wed Nov 16 15:36:57 2011 +0000
[notify] lift some code outside of critical region
gobject/gobject.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index e8850b0..3a5c6a2 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -313,14 +313,14 @@ g_object_notify_queue_add (GObject *object,
{
GParamSpec *redirect;
- G_LOCK(notify_lock);
-
- g_return_if_fail (nqueue->n_pspecs < 65535);
-
redirect = g_param_spec_get_redirect_target (pspec);
if (redirect)
pspec = redirect;
+ G_LOCK(notify_lock);
+
+ g_return_if_fail (nqueue->n_pspecs < 65535);
+
/* we do the deduping in _thaw */
if (g_slist_find (nqueue->pspecs, pspec) == NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]