rlocks
nimony/lib/std/rlocks.nim
This module contains Nim's support for reentrant locks.
type RLock = SysLockNim lock, re-entrant
func initRLock(lock: var SysLock)Initializes the given lock.
func deinitRLock(lock: SysLock)Frees the resources associated with the lock.
func tryAcquire(lock: var SysLock): boolTries to acquire the given lock. Returns
trueon success.func acquire(lock: var SysLock)Acquires the given lock.
func release(lock: var SysLock)Releases the given lock.