Subject: [Boost-bugs] [Boost C++ Libraries] #3391: call_once ignores return value
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-02 16:20:27
#3391: call_once ignores return value
-------------------------------------------------+--------------------------
Reporter: anonymous | Owner: anthonyw
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: thread
Version: Boost 1.40.0 | Severity: Problem
Keywords: call_once,mutex,win32,ignore,result |
-------------------------------------------------+--------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3391> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC