Mirror of
forum.nim-lang.org
index
2697 :: Nim threads vs Pthreads
[2017-01-04T00:58:48+01:00]
View Orginal
sheosi
(orginal)
[2017-01-04T00:58:48+01:00]
view original
So I'm working with threads, and I've found the Nim threads to be somewhat limitating. Now, I'm wondering what differences are between those two? My main question is: do I get the GC for posix threads too, or I need to set up it by myself?
Araq
(orginal)
[2017-01-07T10:16:00+01:00]
view original
You can use
setupForeignThreadGc
in your posix threads, but I urge you to use Nim's threads.