Opened 13 years ago

Closed 12 years ago

#3391 closed Bugs (fixed)

call_once ignores return value

Reported by: anonymous Owned by: Anthony Williams
Milestone: Boost 1.41.0 Component: thread
Version: Boost 1.40.0 Severity: Problem
Keywords: call_once, mutex, win32, ignore, result Cc:

Description

The following code in call_once() ignores return value from windows api:

boost\thread\win32\once.hpp:120

void* const mutex_handle(::boost::detail::create_once_mutex(&flag));
BOOST_ASSERT(mutex_handle);

::boost::detail::create_once_mutex can return NULL but there is only BOOST_ASSERT.

Change History (2)

comment:1 by anonymous, 12 years ago

Implementation changed since revision 57822, so the warning should be disapeared.

comment:2 by Anthony Williams, 12 years ago

Resolution: fixed
Status: newclosed

Fixed on trunk

Note: See TracTickets for help on using tickets.