From 5bc8cd0ecbc06ed46335e01037412a66fd3811ae Mon Sep 17 00:00:00 2001 From: Max Kellermann <max@musicpd.org> Date: Thu, 25 Apr 2019 19:45:52 +0200 Subject: [PATCH] event/Call: use std::lock_guard --- src/event/Call.cxx | 3 +-- 1 file changed, 1 insertion(+), 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(); } };