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`.
|
## sends a signal to the condition variable `cond`.
|
||||||
signalSysCond(cond)
|
signalSysCond(cond)
|
||||||
|
|
||||||
template lock*(a: Lock, body: stmt) =
|
template withLock*(a: Lock, body: untyped) =
|
||||||
a.acquire()
|
a.acquire()
|
||||||
{.locks: [a].}:
|
{.locks: [a].}:
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue