fixes #13881
* fixes #13881 * documented changed requirements for system.onThreadDestruction * destructors.rst: update the documentation
This commit is contained in:
parent
4277ab470a
commit
06dfd31612
9 changed files with 84 additions and 23 deletions
|
|
@ -843,9 +843,10 @@ when not defined(useNimRtl):
|
|||
proc GC_disable() =
|
||||
inc(gch.recGcLock)
|
||||
proc GC_enable() =
|
||||
if gch.recGcLock <= 0:
|
||||
raise newException(AssertionDefect,
|
||||
"API usage error: GC_enable called but GC is already enabled")
|
||||
when defined(nimDoesntTrackDefects):
|
||||
if gch.recGcLock <= 0:
|
||||
raise newException(AssertionDefect,
|
||||
"API usage error: GC_enable called but GC is already enabled")
|
||||
dec(gch.recGcLock)
|
||||
|
||||
proc GC_setStrategy(strategy: GC_Strategy) =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue