This module contains Nim's support for reentrant locks.
RLock = SysLock
proc initRLock(lock: var RLock) {.inline, raises: [], tags: [].}
proc deinitRLock(lock: var RLock) {.inline, raises: [], tags: [].}
proc tryAcquire(lock: var RLock): bool {.raises: [], tags: [].}
proc acquire(lock: var RLock) {.raises: [], tags: [].}
proc release(lock: var RLock) {.raises: [], tags: [].}
template withRLock(lock: var RLock; code: untyped): untyped
© 2006–2017 Andreas Rumpf
Licensed under the MIT License.
https://nim-lang.org/docs/rlocks.html