Mercurial > audlegacy
diff src/audacious/playlist.h @ 3468:440877c9360e trunk
Changed PLAYLIST_{UN}LOCK() macros to use playlist itself as argument, not
the mutex.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 09 Sep 2007 22:05:24 +0300 |
parents | 0fcff78c0c2c |
children | 26910525cec8 |
line wrap: on
line diff
--- a/src/audacious/playlist.h Sun Sep 09 21:36:42 2007 +0300 +++ b/src/audacious/playlist.h Sun Sep 09 22:05:24 2007 +0300 @@ -223,8 +223,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(pl) g_mutex_lock(pl->mutex) +#define PLAYLIST_UNLOCK(pl) g_mutex_unlock(pl->mutex) G_LOCK_EXTERN(playlists);