Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9787: [windows] Small duration value passed down to basic_timed_mutex::try_lock_until and condition_variable::wait_until can cause infinite or near infinite wait for win32
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-09-23 11:59:19
#9787: [windows] Small duration value passed down to
basic_timed_mutex::try_lock_until and condition_variable::wait_until can
cause infinite or near infinite wait for win32
-------------------------------------+-------------------------------------
Reporter: Bryan Laird | Owner: viboes
<bryan_laird@â¦> | Status: assigned
Type: Bugs | Component: thread
Milestone: Boost 1.57.0 | Severity: Problem
Version: Boost 1.53.0 | Keywords: WaitForSingleObject
Resolution: | timed_mutex try_lock_until
| wait_until
-------------------------------------+-------------------------------------
Comment (by Bryan Laird <bryan_laird@â¦>):
The fix looks good.
I would prefer to call WaitForSingleObjectEx() with a 0ms timeout in the
case of tp<=now but that's up to you.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9787#comment:17> 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:17 UTC