Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2008-05-09 03:59:57


Author: anthonyw
Date: 2008-05-09 03:59:57 EDT (Fri, 09 May 2008)
New Revision: 45244
URL: http://svn.boost.org/trac/boost/changeset/45244

Log:
Cleaned up to remove warnings
Text files modified:
   trunk/boost/thread/win32/basic_timed_mutex.hpp | 11 ++---------
   trunk/libs/thread/src/win32/thread.cpp | 3 +++
   2 files changed, 5 insertions(+), 9 deletions(-)

Modified: trunk/boost/thread/win32/basic_timed_mutex.hpp
==============================================================================
--- trunk/boost/thread/win32/basic_timed_mutex.hpp (original)
+++ trunk/boost/thread/win32/basic_timed_mutex.hpp 2008-05-09 03:59:57 EDT (Fri, 09 May 2008)
@@ -67,14 +67,7 @@
                     return true;
                 }
                 long old_count=active_count;
-#ifdef BOOST_MSVC
-#pragma warning(push)
-#pragma warning(disable:4127)
-#endif
- while(true)
-#ifdef BOOST_MSVC
-#pragma warning(pop)
-#endif
+ for(;;)
                 {
                     long const new_count=(old_count&lock_flag_value)?(old_count+1):(old_count|lock_flag_value);
                     long const current=BOOST_INTERLOCKED_COMPARE_EXCHANGE(&active_count,new_count,old_count);
@@ -99,7 +92,7 @@
                         }
                         old_count&=~lock_flag_value;
                         old_count|=event_set_flag_value;
- while(true)
+ for(;;)
                         {
                             long const new_count=((old_count&lock_flag_value)?old_count:((old_count-1)|lock_flag_value))&~event_set_flag_value;
                             long const current=BOOST_INTERLOCKED_COMPARE_EXCHANGE(&active_count,new_count,old_count);

Modified: trunk/libs/thread/src/win32/thread.cpp
==============================================================================
--- trunk/libs/thread/src/win32/thread.cpp (original)
+++ trunk/libs/thread/src/win32/thread.cpp 2008-05-09 03:59:57 EDT (Fri, 09 May 2008)
@@ -218,6 +218,9 @@
             
             void run()
             {}
+ private:
+ externally_launched_thread(externally_launched_thread&);
+ void operator=(externally_launched_thread&);
         };
 
         void make_external_thread_data()


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