sync with the same template from locks module (#18414)
This commit is contained in:
parent
4ec2f74246
commit
48ef832cf3
1 changed files with 1 additions and 1 deletions
|
|
@ -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].}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue