Opened 9 years ago

Last modified 8 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:

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 viboes, 9 years ago

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 by viboes, 9 years ago

Component: smart_ptrNone

comment:3 by viboes, 8 years ago

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