[rhythmbox] no need to set up a recursive mutex for the gdk lock any more



commit 5a2f6d939e8ee5af9f41ac6740f4e633f67e2960
Author: Jonathan Matthew <jonathan d14n org>
Date:   Fri Dec 6 17:07:38 2013 +1000

    no need to set up a recursive mutex for the gdk lock any more

 lib/rb-util.c |   19 -------------------
 1 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/lib/rb-util.c b/lib/rb-util.c
index b4a1dcb..f25a9a8 100644
--- a/lib/rb-util.c
+++ b/lib/rb-util.c
@@ -400,23 +400,8 @@ purge_useless_threads (gpointer data)
        return TRUE;
 }
 
-
-static GRecMutex rb_gdk_mutex;
 static gboolean mutex_recurses;
 
-static void
-_threads_enter (void)
-{
-       g_rec_mutex_lock (&rb_gdk_mutex);
-}
-
-static void
-_threads_leave (void)
-{
-       g_rec_mutex_unlock (&rb_gdk_mutex);
-}
-
-
 /**
  * rb_assert_locked: (skip)
  * @mutex: a #GMutex
@@ -443,10 +428,6 @@ rb_threads_init (void)
 
        g_private_set (&private_is_primary_thread, GUINT_TO_POINTER (1));
 
-       g_rec_mutex_init (&rb_gdk_mutex);
-       gdk_threads_set_lock_functions (_threads_enter, _threads_leave);
-       gdk_threads_init ();
-
        g_mutex_init (&m);
        g_mutex_lock (&m);
        mutex_recurses = g_mutex_trylock (&m);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]