aboutsummaryrefslogtreecommitdiffstats
path: root/src/song.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-10-07 02:57:59 -0700
committerEric Wong <normalperson@yhbt.net>2008-10-07 03:08:32 -0700
commit19c6f1ee92cf6514e885def44f7deb9d225de4dc (patch)
tree4e7d98a99de3212505e996c21edd1822906d9c20 /src/song.h
parenta340bf0dee5bf134770f5d5f532efa90cdb08b3c (diff)
downloadmpd-19c6f1ee92cf6514e885def44f7deb9d225de4dc.tar.gz
mpd-19c6f1ee92cf6514e885def44f7deb9d225de4dc.tar.xz
mpd-19c6f1ee92cf6514e885def44f7deb9d225de4dc.zip
directory: serialize song deletes from playlist during update
This makes the update code thread-safe and doesn't penalize the playlist code by complicating it with complicated and error-prone locks (and the associated overhead, not everybody has a thread-implementation as good as NPTL). The update task blocks during the delete; but the update task is a slow task anyways so we can block w/o people caring too much. This was also our only freeSong call site, so remove that function. Note that deleting entire directories is not fully thread-safe, yet; as their traversals are not yet locked.
Diffstat (limited to 'src/song.h')
-rw-r--r--src/song.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/song.h b/src/song.h
index d8189d42c..9aa9efa94 100644
--- a/src/song.h
+++ b/src/song.h
@@ -42,8 +42,6 @@ typedef struct _Song {
Song *newSong(const char *url, struct _Directory *parentDir);
-void freeSong(Song *);
-
void freeJustSong(Song *);
ssize_t song_print_info(Song * song, int fd);