diff src/audacious/playlist.h @ 2668:d5da5d37ec8b trunk

[svn] - unlock many playlist operations that do not really need locking - information retrieval should not be atomic - add code to expose potentially unnecessary playlist locks - now playlists with remote URIs can mostly be probed in the background
author nenolod
date Tue, 10 Apr 2007 11:12:56 -0700
parents c06b07b17fb5
children ec92054edee9
line wrap: on
line diff
--- a/src/audacious/playlist.h	Tue Apr 10 10:17:48 2007 -0700
+++ b/src/audacious/playlist.h	Tue Apr 10 11:12:56 2007 -0700
@@ -220,8 +220,8 @@
 PlaylistFormat playlist_format_get_from_name(const gchar * filename);
 gboolean is_playlist_name(const gchar * filename);
 
-#define PLAYLIST_LOCK(m)    g_mutex_lock(m)
-#define PLAYLIST_UNLOCK(m)  g_mutex_unlock(m)
+#define PLAYLIST_LOCK(m)    g_mutex_lock(m); g_print("playlist lock: %p [thread %p]\n", m, g_thread_self())
+#define PLAYLIST_UNLOCK(m)  g_mutex_unlock(m); g_print("playlist unlock: %p [thread: %p]\n", m, g_thread_self())
 
 G_LOCK_EXTERN(playlists);