mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-28 17:04:41 +00:00
sync with the same template from locks module (#18414)
This commit is contained in:
@@ -48,7 +48,7 @@ proc release*(lock: var RLock) {.inline.} =
|
||||
## Releases the given lock.
|
||||
releaseSys(lock)
|
||||
|
||||
template withRLock*(lock: var RLock, code: untyped): untyped =
|
||||
template withRLock*(lock: RLock, code: untyped) =
|
||||
## Acquires the given lock and then executes the code.
|
||||
acquire(lock)
|
||||
{.locks: [lock].}:
|
||||
|
||||
Reference in New Issue
Block a user