bugfix: onThreadDestruction callbacks should be run in reverse order
This commit is contained in:
parent
05a3c1b10a
commit
f7e3addb89
1 changed files with 1 additions and 1 deletions
|
|
@ -350,7 +350,7 @@ template beforeThreadRuns() =
|
|||
threadCreationHandlers[i]()
|
||||
|
||||
template afterThreadRuns() =
|
||||
for i in 0..countThreadDestructionHandlers-1:
|
||||
for i in countdown(countThreadDestructionHandlers-1, 0):
|
||||
threadDestructionHandlers[i]()
|
||||
|
||||
proc runOnThreadCreationHandlers*() =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue