[Boost-bugs] [Boost C++ Libraries] #8768: win32 condition_variable::wait_until infinite wait in rare cases

Subject: [Boost-bugs] [Boost C++ Libraries] #8768: win32 condition_variable::wait_until infinite wait in rare cases
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-07-03 08:02:08


#8768: win32 condition_variable::wait_until infinite wait in rare cases
-------------------------------------------------+-------------------------
 Reporter: Dmitry Lysachenko <xdemonx07@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: win32, thread, condition_variable, |
  wait_until |
-------------------------------------------------+-------------------------
 on win32 platform {{{ condition_variable::wait_until(lk, t) }}} can wait
 infinite long if
 {{{
 #!cpp
 ceil<milliseconds>(t - t::clock::now()).count() == -1
 }}}

 do_wait takes boost::detail::timeout. It constructs from -1 =>
 boost::detail::timeout::milliseconds == 0xf..ff, witch is a special value
 checked by is_sentinel().

 Later in win32/thread.cpp: this_thread::interruptible_wait code waits
 boost::detail::timeout::max_non_infinite_wait.

 tested it with msvs 2010.

 attached example

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/8768>
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:13 UTC