Opened 4 years ago

Last modified 3 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.

Attachments (0)

Change History (3)

comment:1 Changed 4 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 4 years ago by viboes

Component: smart_ptrNone

comment:3 Changed 3 years ago by viboes

Component: Nonesmart_ptr

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain Peter Dimov.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.