https://stackoverflow.com/questions/16443989/warnings-when-compiling-boost-libraries-in-c-builder/16448842#16448842
https://stackoverflow.com/questions/42855278/on-which-platforms-does-thread-specific-pointer-work-without-boostthread/42857031#42857031
POSIX threads (pthreads) provide interface for cleaning up thread-local storage, so this remark does not refer to any platforms correctly supporting pthreads.
On Windows there is no native API for TLS cleanup, so the library has to resort to various hacks to implement this. From the source (see here for the case when Boost.Thread is built as a dll, and herefor when it is a static library) you can see that MSVC and MinGW/MinGW-w64 are supported. The dll version is fairly portable, so the cleanup implementation may be missing if you use some exotic compiler on Windows and Boost.Thread is built as a static library.
Boost.Thread provides an indication mechanism for the case when user is required to provide TLS cleanup implementation. The application won't link because of a missing function boost::tss_cleanup_implemented. When such error appears, the user is expected to implement the TLS cleanup and this function (and empty implementation will suffice). When the cleanup is implemented by Boost.Thread, that function is defined by Boost.Thread as well.
转载于:https://www.cnblogs.com/PandaCPP/p/9685439.html
相关资源:垃圾分类数据集及代码