summaryrefslogtreecommitdiff
path: root/src/event/Call.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-04-25 19:45:52 +0200
committerMax Kellermann <max@musicpd.org>2019-04-25 19:45:52 +0200
commit5bc8cd0ecbc06ed46335e01037412a66fd3811ae (patch)
tree16dd25d77903e2d84554e7ab0d4f167bdd5c50cf /src/event/Call.cxx
parentd38a079ba1bec387c8a6eaa34d88df53380b2c49 (diff)
event/Call: use std::lock_guard
Diffstat (limited to 'src/event/Call.cxx')
-rw-r--r--src/event/Call.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event/Call.cxx b/src/event/Call.cxx
index 074d472d1..6a04917ea 100644
--- a/src/event/Call.cxx
+++ b/src/event/Call.cxx
@@ -71,10 +71,9 @@ private:
exception = std::current_exception();
}
- mutex.lock();
+ const std::lock_guard<Mutex> lock(mutex);
done = true;
cond.signal();
- mutex.unlock();
}
};