I have a variable in my function that is static, but I would like it to be static on a per thread basis.
How can I allocate the memory for my C++ class such that eac
Just a side note... MSVC++ supports declspec(thread) from VSC++2005
#if (_MSC_VER >= 1400) #ifndef thread_local #define thread_local __declspec(thread) #endif #endif
Main problem is(which is solved in boost::thread_specific_ptr) variables marked with it can't contain ctor or dtor.