Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-08-28 08:03:47


Author: chris_kohlhoff
Date: 2008-08-28 08:03:46 EDT (Thu, 28 Aug 2008)
New Revision: 48414
URL: http://svn.boost.org/trac/boost/changeset/48414

Log:
Fix uninitialised event handles in asio::detail::thread in external mode.

Text files modified:
   trunk/boost/asio/detail/win_thread.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: trunk/boost/asio/detail/win_thread.hpp
==============================================================================
--- trunk/boost/asio/detail/win_thread.hpp (original)
+++ trunk/boost/asio/detail/win_thread.hpp 2008-08-28 08:03:46 EDT (Thu, 28 Aug 2008)
@@ -80,6 +80,11 @@
         boost::throw_exception(e);
       }
     }
+ else
+ {
+ arg->entry_event_ = 0;
+ arg->exit_event_ = 0;
+ }
 
     unsigned int thread_id = 0;
     thread_ = reinterpret_cast<HANDLE>(::_beginthreadex(0, 0,


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk