Revert "initialize ctxPoolLock"

This reverts commit be4c283581be0e10aa1413d3c0f277164e067d8d.
This commit is contained in:
Ivan Folgueira Bande 2026-01-19 12:00:25 +01:00
parent b8249e6afc
commit c2ca3d4e8a
No known key found for this signature in database
GPG Key ID: 3C117481F89E24A7

View File

@ -140,7 +140,6 @@ proc initializeLibrary() {.exported.} =
## Every Nim library needs to call `<yourprefix>NimMain` once exactly, to initialize the Nim runtime.
## Being `<yourprefix>` 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):