aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/update/Editor.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-31 22:17:49 +0100
committerMax Kellermann <max@duempel.org>2014-01-31 22:17:49 +0100
commit26970579b86c4dfb8e7a11cbc12edac670e4f0e2 (patch)
tree4f859ab8b534fb3d2fc637624cc4c412797a1efd /src/db/update/Editor.hxx
parent04b4f534889719fd822aff5cf9b78a50d1da47ad (diff)
downloadmpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.tar.gz
mpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.tar.xz
mpd-26970579b86c4dfb8e7a11cbc12edac670e4f0e2.zip
db/update/Editor: add locking method variants
Diffstat (limited to 'src/db/update/Editor.hxx')
-rw-r--r--src/db/update/Editor.hxx10
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