diff --git a/include/boost/asio/detail/win_thread.hpp b/include/boost/asio/detail/win_thread.hpp index 123ced72..fe95b3fb 100644 --- a/include/boost/asio/detail/win_thread.hpp +++ b/include/boost/asio/detail/win_thread.hpp @@ -80,6 +80,11 @@ public: boost::throw_exception(e); } } + else + { + arg->entry_event_ = 0; + arg->exit_event_ = 0; + } unsigned int thread_id = 0; thread_ = reinterpret_cast(::_beginthreadex(0, 0,