mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-24 16:25:25 +00:00
Rename locks.lock tmplt to withLock and change body to untyped.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user