Constructs a lock and acquires the mutex in shared mode.
Synopsis
Declared in <folly/SharedMutex.h>
[[nodiscard]]
explicit
shared_lock(mutex_type& mutex);
Return Value
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
mutex |
Mutex to lock. |
Created with MrDocs