We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be94b21 commit 1f59c69Copy full SHA for 1f59c69
src/ESPressio_ThreadSafe.hpp
@@ -109,8 +109,9 @@ namespace ESPressio {
109
}
110
111
void WithWriteLock(std::function<void(T&)> callback) {
112
- std::lock_guard<std::mutex> lock(_mutex);
+ _mutex.lock();
113
callback(_value);
114
+ _mutex.unlock();
115
116
117
/// Invokes the provided `callback` with the `Mutex` object locked, returning `false` if the thread-safe lock was not obtained.
0 commit comments