rwlockΒΆ
type rwlockA read-write lock for synchronizing concurrent code.
fun rwlock(): rwlockReturns a new read-write lock.
meth (Lock: rwlock):rdlockLocks
Lockfor reading, waiting if there are any writers using or waiting to useLock.meth (Lock: rwlock):unlockUnlocks
Lock, resuming any waiting writers or readers (giving preference to writers).meth (Lock: rwlock):wrlockLocks
Lockfor reading, waiting if there are any readers or other writers usingLock.