[rhythmbox] rhythmdb: don't profile db load in parallel with main thread



commit 8bd6c95c9d1def165e6581744125f08191a3a22e
Author: Jonathan Matthew <jonathan d14n org>
Date:   Sat Jan 14 17:34:18 2012 +1000

    rhythmdb: don't profile db load in parallel with main thread
    
    This is just a race between the threads.  Occasionally you
    lose and it crashes on startup.

 rhythmdb/rhythmdb.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/rhythmdb/rhythmdb.c b/rhythmdb/rhythmdb.c
index 86e6c64..d18d47e 100644
--- a/rhythmdb/rhythmdb.c
+++ b/rhythmdb/rhythmdb.c
@@ -3060,7 +3060,6 @@ rhythmdb_load_thread_main (RhythmDB *db)
 
 	db->priv->active_mounts = rhythmdb_get_active_mounts (db);
 
-	rb_profile_start ("loading db");
 	g_mutex_lock (db->priv->saving_mutex);
 	if (klass->impl_load (db, db->priv->exiting, &error) == FALSE) {
 		rb_debug ("db load failed: disabling saving");
@@ -3088,7 +3087,6 @@ rhythmdb_load_thread_main (RhythmDB *db)
 	result->type = RHYTHMDB_EVENT_THREAD_EXITED;
 	rhythmdb_push_event (db, result);
 
-	rb_profile_end ("loading db");
 	return NULL;
 }
 



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