aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/Call.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 12:40:44 +0200
committerMax Kellermann <max@duempel.org>2013-08-10 12:40:44 +0200
commit94cdc47786fcdbfd2c8db24046da197f087dbc5b (patch)
treea12db7ddffcec6eac9c62b40f07fb695b1720f55 /src/event/Call.cxx
parentcc511e7b60270b2a263c5c4618c940a7a1982d56 (diff)
downloadmpd-94cdc47786fcdbfd2c8db24046da197f087dbc5b.tar.gz
mpd-94cdc47786fcdbfd2c8db24046da197f087dbc5b.tar.xz
mpd-94cdc47786fcdbfd2c8db24046da197f087dbc5b.zip
event/Call: signal the calling thread
Fixes regression from commit 018f4155.
Diffstat (limited to 'src/event/Call.cxx')
-rw-r--r--src/event/Call.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/event/Call.cxx b/src/event/Call.cxx
index e8343f606..c9f619472 100644
--- a/src/event/Call.cxx
+++ b/src/event/Call.cxx
@@ -53,6 +53,11 @@ public:
private:
virtual void RunDeferred() override {
f();
+
+ mutex.lock();
+ done = true;
+ cond.signal();
+ mutex.unlock();
}
};