Update of /cvsroot/boost/boost/boost/interprocess/sync/emulation
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv17930/sync/emulation

Modified Files:
        interprocess_condition.hpp interprocess_mutex.hpp 
        interprocess_recursive_mutex.hpp interprocess_semaphore.hpp 
Log Message:
Changes for official inclusion in the regression tests

Index: interprocess_condition.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/interprocess/sync/emulation/interprocess_condition.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- interprocess_condition.hpp  15 Oct 2006 13:05:39 -0000      1.1
+++ interprocess_condition.hpp  4 May 2007 20:53:10 -0000       1.2
@@ -1,6 +1,6 @@
 //////////////////////////////////////////////////////////////////////////////
 //
-// (C) Copyright Ion Gaztañaga 2005-2006. Distributed under the Boost
+// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
 // Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 //
@@ -57,7 +57,7 @@
       detail::thread_yield();
    }
 /*
-   //Wait until the threads are waked
+   //Wait until the threads are woken
    while(SLEEP != detail::atomic_cas32((boost::uint32_t*)&m_command, 0)){
       detail::thread_yield();
    }
@@ -168,7 +168,7 @@
          else{
             //If it is a NOTIFY_ALL command, all threads should return 
             //from do_timed_wait function. Decrement wait count. 
-            unlock_enter_mut = 
detail::atomic_dec32((boost::uint32_t*)&m_num_waiters) == 1;
+            unlock_enter_mut = 
!detail::atomic_dec32((boost::uint32_t*)&m_num_waiters);
             //Check if this is the last thread of notify_all waiters
             //Only the last thread will release the interprocess_mutex
             if(unlock_enter_mut){

Index: interprocess_mutex.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/interprocess/sync/emulation/interprocess_mutex.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- interprocess_mutex.hpp      15 Oct 2006 13:05:44 -0000      1.1
+++ interprocess_mutex.hpp      4 May 2007 20:53:10 -0000       1.2
@@ -1,6 +1,6 @@
 //////////////////////////////////////////////////////////////////////////////
 //
-// (C) Copyright Ion Gaztañaga 2005-2006. Distributed under the Boost
+// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
 // Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 //

Index: interprocess_recursive_mutex.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/interprocess/sync/emulation/interprocess_recursive_mutex.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- interprocess_recursive_mutex.hpp    15 Oct 2006 13:11:08 -0000      1.2
+++ interprocess_recursive_mutex.hpp    4 May 2007 20:53:10 -0000       1.3
@@ -1,6 +1,6 @@
 //////////////////////////////////////////////////////////////////////////////
 //
-// (C) Copyright Ion Gaztañaga 2005-2006. Distributed under the Boost
+// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
 // Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 //
@@ -94,10 +94,7 @@
 
 inline void interprocess_recursive_mutex::unlock()
 {
-   #ifndef NDEBUG
-   detail::OS_thread_id_t th_id = detail::get_current_thread_id();
-   assert(detail::equal_thread_id(th_id, m_nOwner));
-   #endif
+   assert(detail::equal_thread_id(detail::get_current_thread_id(), m_nOwner));
    --m_nLockCount;
    if(!m_nLockCount){
       m_nOwner = detail::get_invalid_thread_id();

Index: interprocess_semaphore.hpp
===================================================================
RCS file: 
/cvsroot/boost/boost/boost/interprocess/sync/emulation/interprocess_semaphore.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- interprocess_semaphore.hpp  15 Oct 2006 13:05:44 -0000      1.1
+++ interprocess_semaphore.hpp  4 May 2007 20:53:10 -0000       1.2
@@ -1,6 +1,6 @@
 //////////////////////////////////////////////////////////////////////////////
 //
-// (C) Copyright Ion Gaztañaga 2005-2006. Distributed under the Boost
+// (C) Copyright Ion Gaztañaga 2005-2007. Distributed under the Boost
 // Software License, Version 1.0. (See accompanying file
 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
 //


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Boost-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/boost-cvs

Reply via email to