Constructs a lock and tries to acquire the mutex without blocking.
Synopsis
Declared in <folly/SharedMutex.h>
[[nodiscard]]
shared_lock(
mutex_type& mutex,
std::try_to_lock_t unused);
Return Value
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
mutex |
Mutex to try to lock. |
unused |
Tag selecting try‐to‐lock. |
Created with MrDocs