Boost logo

Boost-Commit :

From: anthony_at_[hidden]
Date: 2007-10-24 05:32:30


Author: anthonyw
Date: 2007-10-24 05:32:29 EDT (Wed, 24 Oct 2007)
New Revision: 40406
URL: http://svn.boost.org/trac/boost/changeset/40406

Log:
added real default constructor to condition::list_entry
Text files modified:
   trunk/boost/thread/win32/condition_variable.hpp | 11 +++++------
   1 files changed, 5 insertions(+), 6 deletions(-)

Modified: trunk/boost/thread/win32/condition_variable.hpp
==============================================================================
--- trunk/boost/thread/win32/condition_variable.hpp (original)
+++ trunk/boost/thread/win32/condition_variable.hpp 2007-10-24 05:32:29 EDT (Wed, 24 Oct 2007)
@@ -29,6 +29,10 @@
                 detail::win32::handle semaphore;
                 long count;
                 bool notified;
+
+ list_entry():
+ semaphore(0),count(0),notified(0)
+ {}
             };
 
             BOOST_STATIC_CONSTANT(unsigned,generation_count=3);
@@ -173,12 +177,7 @@
         public:
             basic_condition_variable():
                 total_count(0),active_generation_count(0),wake_sem(0)
- {
- for(unsigned i=0;i<generation_count;++i)
- {
- generations[i]=list_entry();
- }
- }
+ {}
             
             ~basic_condition_variable()
             {


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