Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78276 - trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons
From: vicente.botet_at_[hidden]
Date: 2012-04-30 12:01:21


Author: viboes
Date: 2012-04-30 12:01:19 EDT (Mon, 30 Apr 2012)
New Revision: 78276
URL: http://svn.boost.org/trac/boost/changeset/78276

Log:
Thread: Try to fix spourious issue
Text files modified:
   trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/duration_pass.cpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/duration_pass.cpp
==============================================================================
--- trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/duration_pass.cpp (original)
+++ trunk/libs/thread/test/sync/mutual_exclusion/locks/shared_lock/cons/duration_pass.cpp 2012-04-30 12:01:19 EDT (Mon, 30 Apr 2012)
@@ -68,7 +68,8 @@
   {
     m.lock();
     boost::thread t(f2);
- boost::this_thread::sleep_for(ms(300));
+ // This test is spurious as it depends on the time the thread system switches the threads
+ boost::this_thread::sleep_for(ms(300)+ms(1000));
     m.unlock();
     t.join();
   }


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