Skip to content

Commit b203ede

Browse files
committed
- TryWithWriteLock fixed on Mutex type
1 parent f965330 commit b203ede

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ESPressio_ThreadSafe.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ namespace ESPressio {
124124
}
125125

126126
bool TryWithWriteLock(std::function<void(T&)> callback) {
127-
return TryWithLock(callback);
127+
return TryWithReadLock(callback);
128128
}
129129

130130
/// Releases the Lock on the `Mutex` object.

0 commit comments

Comments
 (0)