
14 Jun
2008
14 Jun
'08
11:33 p.m.
Hi! Václav Haisman schrieb:
I think you could pass the value to your thread function as bare pointer and then store it in boost::thread_specific_ptr<>.
Ok, I would then encapsulate this behaviour in my own thread class that wraps boost::thread. The thread_specific_ptr shall be initialized automatically, that is without additional code at the thread creation site. Frank