[Boost-bugs] [Boost C++ Libraries] #8422: Assertion in win32::WaitForSingleObject()

Subject: [Boost-bugs] [Boost C++ Libraries] #8422: Assertion in win32::WaitForSingleObject()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-04-09 15:42:13


#8422: Assertion in win32::WaitForSingleObject()
-------------------------------------------------------------------+--------
 Reporter: robert.stewart@… | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: assertion basic_timed_mutex win32 WaitForSingleObject |
-------------------------------------------------------------------+--------
 I get the following assertion when I used Ctrl-C on an app:

 `Assertion failed: win32::WaitForSingleObject(
 sem,::boost::detail::win32::infinite)==0, file
 ...\boost\thread\win32\basic_timed_mutex.hpp, line 79`

 Examination of that line of code reveals that the error handling is
 insufficient. `WaitForSingleObject()` can return `WAIT_ABANDONED` if the
 lock is held when the owning thread is released. In non-debug builds,
 this means the code falls through to the next statement in such cases,
 whereas in debug `BOOST_VERIFY` reports an error. Either way,
 `WAIT_ABANDONED` should be handled.

 (Refer to http://msdn.microsoft.com/en-
 us/library/windows/desktop/ms687032.aspx for details on the API.)

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