Hello everybody,
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?
Marklane
Add thread locak bool variable to your thread init proc and do
if not initialialized:
do stuff
initialized = true