Rename locks.lock tmplt to withLock and change body to untyped.

This commit is contained in:
Dominik Picheta
2016-03-23 12:45:36 +00:00
parent f0341979bd
commit 1cc1a7faf4

View File

@@ -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: