diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2016-03-23 12:45:36 +0000 |
---|---|---|
committer | Dominik Picheta <dominikpicheta@gmail.com> | 2016-03-23 12:45:36 +0000 |
commit | 1cc1a7faf46a50c1e7778b6f3d61ac1a5ae932c7 (patch) | |
tree | a4e3977115d96da3cafd01bebcaf85fc69cee514 | |
parent | f0341979bd419048e78603d440523fdba217afcc (diff) | |
download | Nim-1cc1a7faf46a50c1e7778b6f3d61ac1a5ae932c7.tar.gz |
Rename locks.lock tmplt to withLock and change body to untyped.
-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: |