diff options
author | Max Kellermann <max@duempel.org> | 2014-01-31 22:17:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-31 22:17:49 +0100 |
commit | 26970579b86c4dfb8e7a11cbc12edac670e4f0e2 (patch) | |
tree | 4f859ab8b534fb3d2fc637624cc4c412797a1efd /src/db/update/Editor.hxx | |
parent | 04b4f534889719fd822aff5cf9b78a50d1da47ad (diff) | |
download | mpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.tar.gz mpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.tar.xz mpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.zip |
db/update/Editor: add locking method variants
Diffstat (limited to '')
-rw-r--r-- | src/db/update/Editor.hxx | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/db/update/Editor.hxx b/src/db/update/Editor.hxx index a9093d662..b1c99095f 100644 --- a/src/db/update/Editor.hxx +++ b/src/db/update/Editor.hxx @@ -40,6 +40,11 @@ public: void DeleteSong(Directory &parent, Song *song); /** + * DeleteSong() with automatic locking. + */ + void LockDeleteSong(Directory &parent, Song *song); + + /** * Recursively free a directory and all its contents. * * Caller must lock the #db_mutex. @@ -47,6 +52,11 @@ public: void DeleteDirectory(Directory *directory); /** + * DeleteDirectory() with automatic locking. + */ + void LockDeleteDirectory(Directory *directory); + + /** * Caller must NOT lock the #db_mutex. * * @return true if the database was modified |