Mirror of
forum.nim-lang.org
index
4266 :: Execute a statement by every thread in the threadpool
[2018-10-02T14:26:46+02:00]
View Orginal
cdome
(orginal)
[2018-10-02T14:26:46+02:00]
view original
Hi, I need to make sure that every thread in a threadpool gets correct initialization before getting spawning tasks. It is possible to make register a initializer for the thread or forcing proc to be executed on every thread in a pool?