diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/core/locks.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/locks.nim b/lib/core/locks.nim index 443c09fdc..ba756a863 100644 --- a/lib/core/locks.nim +++ b/lib/core/locks.nim @@ -55,7 +55,7 @@ proc signal*(cond: var Cond) {.inline.} = ## sends a signal to the condition variable `cond`. signalSysCond(cond) -template lock*(a: Lock, body: stmt) = +template withLock*(a: Lock, body: untyped) = a.acquire() {.locks: [a].}: try: |