summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@gmail.com>2016-03-23 12:45:36 +0000
committerDominik Picheta <dominikpicheta@gmail.com>2016-03-23 12:45:36 +0000
commit1cc1a7faf46a50c1e7778b6f3d61ac1a5ae932c7 (patch)
treea4e3977115d96da3cafd01bebcaf85fc69cee514
parentf0341979bd419048e78603d440523fdba217afcc (diff)
downloadNim-1cc1a7faf46a50c1e7778b6f3d61ac1a5ae932c7.tar.gz
Rename locks.lock tmplt to withLock and change body to untyped.
-rw-r--r--lib/core/locks.nim2
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: