Subject: [Boost-bugs] [Boost C++ Libraries] #9618: try_join_for problem: program is not terminate.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-01-30 12:32:31
#9618: try_join_for problem: program is not terminate.
--------------------------------+----------------------
Reporter: oniprog <tkuman@â¦> | Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.55.0 | Severity: Problem
Keywords: try_join_for |
--------------------------------+----------------------
In the following,
{{{
auto pDummyThread = []{
// not important
};
boost::thread t1( pDummyThread );
while( true ) {
if ( t1.try_join_for(boost::chrono::milliseconds(0))/*(1)*/ )
break;
}
}}}
If (1) is "try_join_for(boost::chrono::millseconds(1))", program will
terminate.
But (1) is "try_join_for(boost::chrono::milliseconds(0))", program is not
terminate.
I think that this program must terminate.
(boost 1.55.0, windows 8.1 64 bits, Visual Studio 2012)
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9618> 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:15 UTC