[#BloombergLP-bslmt-RWMutexImpl-0e-lockRead] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmt.adoc[bslmt]::xref:BloombergLP/bslmt/RWMutexImpl-0e.adoc[RWMutexImpl<Platform::PosixThreads>]::lockRead :relfileprefix: ../../../ :mrdocs: Lock this readers‐writer mutex for reading. == Synopsis Declared in `<bslmt_rwmutex.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void lockRead(); ---- == Description If there are no active or pending write locks, lock this mutex for reading and return immediately. Otherwise, block until the read lock on this mutex is acquired. Use `unlock` to release the lock on this mutex. The behavior is undefined if this method is called from a thread that already has a lock on this mutex. [.small]#Created with https://www.mrdocs.com[MrDocs]#