Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-05-23 06:48:08


Author: anthonyw
Date: 2008-05-23 06:48:07 EDT (Fri, 23 May 2008)
New Revision: 45672
URL: http://svn.boost.org/trac/boost/changeset/45672

Log:
Reset thread_info on move rather than assigning 0
Text files modified:
   trunk/boost/thread/detail/thread.hpp | 12 ++++++------
   1 files changed, 6 insertions(+), 6 deletions(-)

Modified: trunk/boost/thread/detail/thread.hpp
==============================================================================
--- trunk/boost/thread/detail/thread.hpp (original)
+++ trunk/boost/thread/detail/thread.hpp 2008-05-23 06:48:07 EDT (Fri, 23 May 2008)
@@ -137,15 +137,15 @@
         thread(detail::thread_move_t<thread> x)
         {
             thread_info=x->thread_info;
- x->thread_info=0;
+ x->thread_info.reset();
         }
         
         thread& operator=(detail::thread_move_t<thread> x)
- {
- thread new_thread(x);
- swap(new_thread);
- return *this;
- }
+ {
+ thread new_thread(x);
+ swap(new_thread);
+ return *this;
+ }
         
         operator detail::thread_move_t<thread>()
         {


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