summary refs log tree commit diff stats
path: root/lib/core/locks.nim
diff options
context:
space:
mode:
Diffstat (limited to 'lib/core/locks.nim')
-rw-r--r--lib/core/locks.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/core/locks.nim b/lib/core/locks.nim
index fbe9c8acf..9f52078fa 100644
--- a/lib/core/locks.nim
+++ b/lib/core/locks.nim
@@ -59,6 +59,7 @@ proc signal*(cond: var Cond) {.inline.} =
 template withLock*(a: Lock, body: untyped) =
   ## Acquires the given lock, executes the statements in body and
   ## releases the lock after the statements finish executing.
+  mixin acquire, release
   a.acquire()
   {.locks: [a].}:
     try: