Skip to content

Commit a29901c

Browse files
committed
- Fixed incorrect method name on Mutex
1 parent 6d33c42 commit a29901c

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
@@ -114,7 +114,7 @@ namespace ESPressio {
114114
}
115115

116116
/// Invokes the provided `callback` with the `Mutex` object locked, returning `false` if the thread-safe lock was not obtained.
117-
bool TryWithLock(std::function<void(T&)> callback) {
117+
bool TryWithReadLock(std::function<void(T&)> callback) {
118118
if (!_mutex.try_lock()) {
119119
return false;
120120
}

0 commit comments

Comments
 (0)