If you intend to write C++ and you do not have a need to use Win32 functions specifically, then you should use the C++11 thread_local
. See https://en.cppreference.com/w/cpp/keyword/thread_local
This is portable and is a lot easier to use.
If you intend to write C++ and you do not have a need to use Win32 functions specifically, then you should use the C++11 thread_local
. See https://en.cppreference.com/w/cpp/keyword/thread_local
This is portable and is a lot easier to use.