Disable stacktrace in locks (#6128)
This commit is contained in:
parent
bbbf5cf800
commit
1f13e94dd0
1 changed files with 4 additions and 0 deletions
|
|
@ -19,6 +19,8 @@ type
|
|||
|
||||
{.deprecated: [TLock: Lock, TCond: Cond].}
|
||||
|
||||
{.push stackTrace: off.}
|
||||
|
||||
proc initLock*(lock: var Lock) {.inline.} =
|
||||
## Initializes the given lock.
|
||||
initSysLock(lock)
|
||||
|
|
@ -66,3 +68,5 @@ template withLock*(a: Lock, body: untyped) =
|
|||
body
|
||||
finally:
|
||||
a.release()
|
||||
|
||||
{.pop.}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue