NoLock
is a no-op lock that satisfies the C++ named requirements for BasicLockable
but performs no synchronization. This can be used for code that is conditionally thread-safe.
Public Member Functions | |
constexpr void | lock () |
constexpr void | unlock () |
bool | try_lock () |