aboutsummaryrefslogtreecommitdiffstats
path: root/src/song_sticker.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-01-31 22:12:14 +0100
committerMax Kellermann <max@duempel.org>2012-02-02 18:06:33 +0100
commitef5cf40fa6d3e2f50ad916be8e5bd99affe7d2e3 (patch)
treebffd4ea35f30f96e8dc8d1ac74184bd4dab5d5d6 /src/song_sticker.h
parent837bd79b20d4b9b8525a42999a9d1911f8980aa4 (diff)
downloadmpd-ef5cf40fa6d3e2f50ad916be8e5bd99affe7d2e3.tar.gz
mpd-ef5cf40fa6d3e2f50ad916be8e5bd99affe7d2e3.tar.xz
mpd-ef5cf40fa6d3e2f50ad916be8e5bd99affe7d2e3.zip
directory: require the caller to lock the db_mutex
Reduce the number of lock/unlock cycles, and make database handling safer.
Diffstat (limited to '')
-rw-r--r--src/song_sticker.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/song_sticker.h b/src/song_sticker.h
index 43fe59dbd..20ae68ce9 100644
--- a/src/song_sticker.h
+++ b/src/song_sticker.h
@@ -68,6 +68,8 @@ sticker_song_get(const struct song *song);
* Finds stickers with the specified name below the specified
* directory.
*
+ * Caller must lock the #db_mutex.
+ *
* @param directory the base directory to search in
* @param name the name of the sticker
* @return true on success (even if no sticker was found), false on