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