with-read-lock ( lock quot -- )
Locks ยป Read-write locks

Prev:<rw-lock> ( -- lock )
Next:with-write-lock ( lock quot -- )


Vocabulary
concurrency.locks

Inputs
locka lock
quota quotation


Outputs
None

Word description
Calls the quotation, ensuring that no other thread is holding a write lock at the same time. If another thread is holding a write lock, blocks until the thread releases the lock.

Definition