mirror of
https://github.com/logos-messaging/nim-sds.git
synced 2026-01-16 21:13:10 +00:00
Merge pull request #42 from logos-messaging/initialize-lock
initialize ctxPoolLock to avoid crash on Windows/iOS
This commit is contained in:
commit
239f619625
@ -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