Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75903 - trunk/boost/thread/win32
From: vicente.botet_at_[hidden]
Date: 2011-12-11 10:43:14


Author: viboes
Date: 2011-12-11 10:43:13 EST (Sun, 11 Dec 2011)
New Revision: 75903
URL: http://svn.boost.org/trac/boost/changeset/75903

Log:
Thread: #5594 boost::shared_mutex not fully compatible with Windows CE.
Text files modified:
   trunk/boost/thread/win32/shared_mutex.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/thread/win32/shared_mutex.hpp
==============================================================================
--- trunk/boost/thread/win32/shared_mutex.hpp (original)
+++ trunk/boost/thread/win32/shared_mutex.hpp 2011-12-11 10:43:13 EST (Sun, 11 Dec 2011)
@@ -337,7 +337,12 @@
                 {
                     return true;
                 }
- unsigned long const wait_res=detail::win32::WaitForMultipleObjects(2,semaphores,true,::boost::detail::get_milliseconds_until(wait_until));
+ #ifndef UNDER_CE
+ const bool wait_all = true;
+ #else
+ const bool wait_all = false;
+ #endif
+ unsigned long const wait_res=detail::win32::WaitForMultipleObjects(2,semaphores,wait_all,::boost::detail::get_milliseconds_until(wait_until));
                 if(wait_res==detail::win32::timeout)
                 {
                     for(;;)


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