[Boost-bugs] [Boost C++ Libraries] #5891: timed_join works incorrecly on Windows

Subject: [Boost-bugs] [Boost C++ Libraries] #5891: timed_join works incorrecly on Windows
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-09-12 11:56:30


#5891: timed_join works incorrecly on Windows
---------------------------------+------------------------------------------
 Reporter: sr@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.47.0 | Severity: Problem
 Keywords: timed_join |
---------------------------------+------------------------------------------
 // following lines of code works not as excepted:

 struct
 {
   void operator()(){boost::this_thread::sleep(posix_time::seconds(2));}
 } run;
 boost::thread myThread(run);
 boost::this_thread::yield();
 if(myThread.timed_join(posix_time::seconds(5)))
   cout << "thats ok";
 else
   throw std::exception("timeout expired");

 // everytime the exception is occured
 // in other, more complex, cases a dead lock is observed
 // same code on Linux works as expected

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5891>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:07 UTC