GitHub

tx_reentrant_lock

API reference for tx_reentrant_lock.

TxReentrantLock: a transactional reentrant read/write lock (Effect's TxReentrantLock).

Locks are held per fiber. Any number of fibers can hold read locks while no other fiber holds the write lock; one fiber can hold the write lock while no other fiber holds a read lock. A fiber can take either lock again while it holds it (each take counts and needs its own release), and the write lock's holder can also take read locks.

Classes