Opened 9 years ago
Last modified 8 years ago
#8923 new Bugs
boost/detail/lightweight_thread.hpp: Ignores failures from WaitForSingleObject
Reported by: | Owned by: | Peter Dimov | |
---|---|---|---|
Milestone: | To Be Determined | Component: | smart_ptr |
Version: | Boost 1.54.0 | Severity: | Problem |
Keywords: | synchronization WaitForSingleObject API failure | Cc: |
Description
boost/detail/lightweight_thread.hpp ignores failures from WaitForSingleObject. There's not much point in closing the handle if the wait failed due to ERROR_INVALID_HANDLE.
At minimum (as a user), I would expect Boost to use BOOST_ASSERT with an appropriate exception in debugging and diagnostic builds; and BOOST_VERIFY with an appropriate exception for release or production builds.
Change History (3)
comment:1 by , 9 years ago
Component: | None → smart_ptr |
---|---|
Owner: | set to |
comment:2 by , 9 years ago
Component: | smart_ptr → None |
---|
comment:3 by , 8 years ago
Component: | None → smart_ptr |
---|
Note:
See TracTickets
for help on using tickets.
Please, associate the ticket to the library you are using that uses boost/detail/lightweight_thread.hpp.