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