Obtain a read lock on this.
If another thread currently holds the write lock on this or blocks waiting for it, the current thread 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.
this |
a RWLock |