diff options
author | Antonis Geralis <43617260+planetis-m@users.noreply.github.com> | 2021-07-10 09:41:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-10 08:41:07 +0200 |
commit | 48ef832cf346a3c98dd059ddf77201b3ccb3f59f (patch) | |
tree | 9213afb263779f7846a11977975b9f93a7ccfaed /lib/core | |
parent | 4ec2f74246158759735149e3dd087f373fd787b2 (diff) | |
download | Nim-48ef832cf346a3c98dd059ddf77201b3ccb3f59f.tar.gz |
sync with the same template from locks module (#18414)
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/rlocks.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/rlocks.nim b/lib/core/rlocks.nim index a1ee0a6ec..0444b9a83 100644 --- a/lib/core/rlocks.nim +++ b/lib/core/rlocks.nim @@ -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].}: |