Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r63796 - trunk/boost/thread/win32
From: anthony_at_[hidden]
Date: 2010-07-09 17:21:52


Author: anthonyw
Date: 2010-07-09 17:21:48 EDT (Fri, 09 Jul 2010)
New Revision: 63796
URL: http://svn.boost.org/trac/boost/changeset/63796

Log:
Tidied up call_once to remove unused throw_count stuff
Text files modified:
   trunk/boost/thread/win32/once.hpp | 9 +--------
   1 files changed, 1 insertions(+), 8 deletions(-)

Modified: trunk/boost/thread/win32/once.hpp
==============================================================================
--- trunk/boost/thread/win32/once.hpp (original)
+++ trunk/boost/thread/win32/once.hpp 2010-07-09 17:21:48 EDT (Fri, 09 Jul 2010)
@@ -34,10 +34,9 @@
     {
         long status;
         long count;
- long throw_count;
     };
 
-#define BOOST_ONCE_INIT {0,0,0}
+#define BOOST_ONCE_INIT {0,0}
 
     namespace detail
     {
@@ -128,7 +127,6 @@
         long status;
         bool counted=false;
         detail::win32::handle_manager event_handle;
- long throw_count=0;
         detail::once_char_type mutex_name[detail::once_mutex_name_length];
         mutex_name[0]=0;
 
@@ -164,15 +162,10 @@
                     {
                         ::boost::detail::win32::SetEvent(event_handle);
                     }
- throw_count=::boost::detail::interlocked_read_acquire(&flag.throw_count);
                     break;
                 }
                 catch(...)
                 {
- if(counted)
- {
- BOOST_INTERLOCKED_INCREMENT(&flag.throw_count);
- }
                     BOOST_INTERLOCKED_EXCHANGE(&flag.status,0);
                     if(!event_handle)
                     {


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