mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 14:00:35 +00:00
Disable stacktrace in locks (#6128)
This commit is contained in:
committed by
Andreas Rumpf
parent
bbbf5cf800
commit
1f13e94dd0
@@ -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.}
|
||||
|
||||
Reference in New Issue
Block a user