Opened 5 years ago

Last modified 4 years ago

#8923 new Bugs

boost/detail/lightweight_thread.hpp: Ignores failures from WaitForSingleObject

Reported by: Jeffrey Walton <noloader@…> Owned by: Peter Dimov
Milestone: To Be Determined Component: smart_ptr
Version: Boost 1.54.0 Severity: Problem
Keywords: synchronization WaitForSingleObject API failure Cc:


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 Changed 5 years ago by viboes

Component: Nonesmart_ptr
Owner: set to Peter Dimov

Please, associate the ticket to the library you are using that uses boost/detail/lightweight_thread.hpp.

comment:2 Changed 5 years ago by viboes

Component: smart_ptrNone

comment:3 Changed 4 years ago by viboes

Component: Nonesmart_ptr
Note: See TracTickets for help on using tickets.