event/Call: use std::lock_guard

This commit is contained in:
Max Kellermann 2019-04-25 19:45:52 +02:00
parent d38a079ba1
commit 5bc8cd0ecb
1 changed files with 1 additions and 2 deletions

View File

@ -71,10 +71,9 @@ private:
exception = std::current_exception();
}
mutex.lock();
const std::lock_guard<Mutex> lock(mutex);
done = true;
cond.signal();
mutex.unlock();
}
};