mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-02-12 10:03:34 +00:00
initialize ctxPoolLock
This commit is contained in:
parent
fb8039c5a5
commit
be4c283581
@ -140,6 +140,7 @@ 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):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user