From be4c283581be0e10aa1413d3c0f277164e067d8d Mon Sep 17 00:00:00 2001 From: Ivan Folgueira Bande Date: Wed, 14 Jan 2026 11:49:04 +0100 Subject: [PATCH] initialize ctxPoolLock --- library/libsds.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/library/libsds.nim b/library/libsds.nim index 59881c5..878ec1a 100644 --- a/library/libsds.nim +++ b/library/libsds.nim @@ -140,6 +140,7 @@ proc initializeLibrary() {.exported.} = ## Every Nim library needs to call `NimMain` once exactly, to initialize the Nim runtime. ## Being `` the value given in the optional compilation flag --nimMainPrefix:yourprefix libsdsNimMain() + ctxPoolLock.initLock() # ensure the lock is initialized once (fix Windows crash) when declared(setupForeignThreadGc): setupForeignThreadGc() when declared(nimGC_setStackBottom):