Commit 5bc8cd0e authored by Max Kellermann's avatar Max Kellermann

event/Call: use std::lock_guard

parent d38a079b
...@@ -71,10 +71,9 @@ private: ...@@ -71,10 +71,9 @@ private:
exception = std::current_exception(); exception = std::current_exception();
} }
mutex.lock(); const std::lock_guard<Mutex> lock(mutex);
done = true; done = true;
cond.signal(); cond.signal();
mutex.unlock();
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment