mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 06:45:27 +00:00
bugfix: onThreadDestruction callbacks should be run in reverse order
This commit is contained in:
@@ -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*() =
|
||||
|
||||
Reference in New Issue
Block a user