Constructs a lock that adopts an already‐held shared lock.
Synopsis
Declared in <folly/SharedMutex.h>
[[nodiscard]]
shared_lock(
mutex_type& mutex,
std::adopt_lock_t unused);
Return Value
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
mutex |
Mutex whose shared ownership is adopted. |
unused |
Tag selecting lock adoption. |
Created with MrDocs