Mercurial > audlegacy
diff src/audacious/playlist.h @ 3923:e9fd46b0893b
- redefine playlist_incr_serial as a macro.
- refine serial notification.
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Sat, 10 Nov 2007 15:55:12 +0900 |
parents | c2b2828186ba |
children | 206378f34610 |
line wrap: on
line diff
--- a/src/audacious/playlist.h Sat Nov 10 00:47:40 2007 +0900 +++ b/src/audacious/playlist.h Sat Nov 10 15:55:12 2007 +0900 @@ -224,8 +224,9 @@ gboolean is_playlist_name(const gchar * filename); -#define PLAYLIST_LOCK(pl) g_mutex_lock(pl->mutex) -#define PLAYLIST_UNLOCK(pl) g_mutex_unlock(pl->mutex) +#define PLAYLIST_LOCK(pl) g_mutex_lock((pl)->mutex) +#define PLAYLIST_UNLOCK(pl) g_mutex_unlock((pl)->mutex) +#define PLAYLIST_INCR_SERIAL(pl) (pl)->serial++ G_LOCK_EXTERN(playlists);