diff options
author | Max Kellermann <max@duempel.org> | 2012-01-31 22:12:14 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-02-02 18:06:33 +0100 |
commit | ef5cf40fa6d3e2f50ad916be8e5bd99affe7d2e3 (patch) | |
tree | bffd4ea35f30f96e8dc8d1ac74184bd4dab5d5d6 /src/song_sticker.h | |
parent | 837bd79b20d4b9b8525a42999a9d1911f8980aa4 (diff) | |
download | mpd-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.h | 2 |
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 |