From b62503f2742ceecc2bbc10a51a295476e002e6e6 Mon Sep 17 00:00:00 2001 From: Michael Glassford Date: Sun, 1 Aug 2004 11:39:59 +0000 Subject: [PATCH] Call tss cleanup after thread function exits even in dll builds of Boost.Threads (win32 only). [SVN r24227] --- src/thread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/thread.cpp b/src/thread.cpp index 4be0d268..c0e45037 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -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 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 }