Boost logo

Boost :

From: Pedro Lamarão (pedro.lamarao_at_[hidden])
Date: 2005-06-14 09:09:16


This small patch fixes the order of initialization of members and adds
missing entries.

Entering libs/thread/test/ and calling bjam didn't produce errors; but I
didn't see anything running. Is that the correct procedure to regression
test the library?

--
 Pedro Lamarão

Index: read_write_mutex.cpp
===================================================================
RCS file: /cvsroot/boost/boost/libs/thread/src/read_write_mutex.cpp,v
retrieving revision 1.20
diff -u -r1.20 read_write_mutex.cpp
--- read_write_mutex.cpp 3 May 2005 20:42:09 -0000 1.20
+++ read_write_mutex.cpp 14 Jun 2005 14:07:24 -0000
@@ -364,15 +364,19 @@
 
 template<typename Mutex>
 read_write_mutex_impl<Mutex>::read_write_mutex_impl(read_write_scheduling_policy::read_write_scheduling_policy_enum sp)
- : m_num_waiting_writers(0)
+ : m_prot()
+ , m_sp(sp)
+ , m_state(0)
+ , m_waiting_writers()
+ , m_waiting_readers()
+ , m_waiting_promotion()
+ , m_num_waiting_writers(0)
     , m_num_waiting_readers(0)
+ , m_state_waiting_promotion(false)
     , m_num_waking_writers(0)
- , m_num_max_waking_writers(0)
     , m_num_waking_readers(0)
+ , m_num_max_waking_writers(0)
     , m_num_max_waking_readers(0)
- , m_state_waiting_promotion(false)
- , m_state(0)
- , m_sp(sp)
     , m_readers_next(true)
 {}
 


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk