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 1f59c69 commit e8cb98fCopy full SHA for e8cb98f
src/ESPressio_ThreadSafe.hpp
@@ -104,8 +104,9 @@ namespace ESPressio {
104
105
/// Invokes the provided `callback` with the `Mutex` object locked.
106
void WithReadLock(std::function<void(T&)> callback) {
107
- std::lock_guard<std::mutex> lock(_mutex);
+ _mutex.lock();
108
callback(_value);
109
+ _mutex.unlock();
110
}
111
112
void WithWriteLock(std::function<void(T&)> callback) {
0 commit comments