RWLock.readerLock

Obtain a read lock on rw_lock. If another thread currently holds the write lock on rw_lock, the current thread will block. If another thread does not hold the write lock, but is waiting for it, it is implementation defined whether the reader or writer will block. Read locks can be taken recursively.

It is implementation-defined how many threads are allowed to hold read locks on the same lock simultaneously. If the limit is hit, or if a deadlock is detected, a critical warning will be emitted.

class RWLock
void
readerLock
()

Meta

Since

2.32