Mercurial > audlegacy
comparison audacious/playlist.c @ 1351:fbb38017d144 trunk
[svn] - why are we requiring a lock in functions that are in the nolock namespace?
author | nenolod |
---|---|
date | Wed, 28 Jun 2006 13:50:30 -0700 |
parents | 8c8d4841efae |
children | e6cf73d27ea4 |
comparison
equal
deleted
inserted
replaced
1350:ca5d03c4b3f1 | 1351:fbb38017d144 |
---|---|
1213 } | 1213 } |
1214 | 1214 |
1215 gint | 1215 gint |
1216 playlist_get_length_nolock(void) | 1216 playlist_get_length_nolock(void) |
1217 { | 1217 { |
1218 REQUIRE_STATIC_LOCK(playlist); | |
1219 return g_list_length(playlist); | 1218 return g_list_length(playlist); |
1220 } | 1219 } |
1221 | 1220 |
1222 gchar * | 1221 gchar * |
1223 playlist_get_info_text(void) | 1222 playlist_get_info_text(void) |
1598 } | 1597 } |
1599 | 1598 |
1600 gint | 1599 gint |
1601 playlist_get_position_nolock(void) | 1600 playlist_get_position_nolock(void) |
1602 { | 1601 { |
1603 REQUIRE_STATIC_LOCK(playlist); | |
1604 | |
1605 if (playlist && playlist_position) | 1602 if (playlist && playlist_position) |
1606 return g_list_index(playlist, playlist_position); | 1603 return g_list_index(playlist, playlist_position); |
1607 return 0; | 1604 return 0; |
1608 } | 1605 } |
1609 | 1606 |