Hi, I'm new to Nim, sorry if that's a stupid question.
I need to create a thread in which I will invoke some GUI library(to display an image). When I envelop this code(to open window) inside a procedure I find out that it's gc-unsafe, which is the case for majority of libs out there: * NiGui relies on `var app*: App` global variable, which can't be passed to the thread as argument because `App` type is private * wNim - app variable is created locally but you have to run app.mainLoop() which is not gc-safe itself and so on. Are they considered thread unsafe? Is there a way to use these libraries inside a thread without changing their source code? I'm asking because I would implement this task in any other language without such hurdle... Thank You!