@mratsim Does that mean I shouldn't use 
[https://github.com/nim-lang/Nim/blob/master/lib/pure/volatile.nim](https://github.com/nim-lang/Nim/blob/master/lib/pure/volatile.nim)
 ?

@mikra How would you "share" something between threads without globals? Globals 
are generally considered "evil", but atm I would not know of a better way to do 
this in Nim... Create your data in the main thread before creating "worker 
threads", and pass a pointer to your data at thread creation maybe?

Reply via email to