bugfix: bottom of AVL tree is now threadsafe
This commit is contained in:
parent
5a2ff9035e
commit
bc53d2c9de
3 changed files with 7 additions and 5 deletions
|
|
@ -356,6 +356,8 @@ proc threadProcWrapStackFrame[TArg](thrd: ptr Thread[TArg]) =
|
|||
|
||||
template threadProcWrapperBody(closure: expr) {.immediate.} =
|
||||
when declared(globalsSlot): threadVarSetValue(globalsSlot, closure)
|
||||
when declared(initAllocator):
|
||||
initAllocator()
|
||||
var thrd = cast[ptr Thread[TArg]](closure)
|
||||
threadProcWrapStackFrame(thrd)
|
||||
# Since an unhandled exception terminates the whole process (!), there is
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue