Home -> ReadWriteMutex -> ObtainReadLock
Description
The ObtainReadLock method obtains a read lock for this mutex. This method blocks the calling thread until the lock can be obtained.
Usage
std::unique_ptr<ReadLock> ObtainReadLock();
Return value
- [std::unique_ptr<ReadLock>]
- A read lock object that holds the lock until it is unlocked or destroyed.