Rename locks.lock tmplt to withLock and change body to untyped.
This commit is contained in:
parent
f0341979bd
commit
1cc1a7faf4
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue