From ef5cf40fa6d3e2f50ad916be8e5bd99affe7d2e3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 31 Jan 2012 22:12:14 +0100 Subject: directory: require the caller to lock the db_mutex Reduce the number of lock/unlock cycles, and make database handling safer. --- src/song_sticker.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/song_sticker.h') 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 -- cgit v1.2.3