2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-08 23:22:13 +00:00

Call tss cleanup after thread function exits even in dll builds of Boost.Threads (win32 only).

[SVN r24227]
This commit is contained in:
Michael Glassford
2004-08-01 11:39:59 +00:00
parent af50c640ab
commit b62503f274

View File

@@ -31,7 +31,7 @@
#include "timeconv.inl"
#if defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_LIB)
#if defined(BOOST_HAS_WINTHREADS)
# include "boost/thread/detail/threadmon.hpp"
#endif
@@ -111,13 +111,13 @@ extern "C" {
boost::function0<void> threadfunc = p->m_threadfunc;
p->started();
threadfunc();
#if defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_LIB)
#if defined(BOOST_HAS_WINTHREADS)
on_thread_exit();
#endif
}
catch (...)
{
#if defined(BOOST_HAS_WINTHREADS) && defined(BOOST_THREAD_BUILD_LIB)
#if defined(BOOST_HAS_WINTHREADS)
on_thread_exit();
#endif
}