Subject: Re: [Boost-bugs] [Boost C++ Libraries] #9355: boost::coroutine crash in base<void>::pull_coroutine_base<void> with multiple threads
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-11-13 09:33:38
#9355: boost::coroutine crash in base<void>::pull_coroutine_base<void> with
multiple threads
-------------------------------+----------------------------------------
Reporter: craig@⦠| Owner: olli
Type: Bugs | Status: reopened
Milestone: To Be Determined | Component: coroutine
Version: Boost 1.55.0 | Severity: Problem
Resolution: | Keywords: pull_coroutine_base; crash
-------------------------------+----------------------------------------
Comment (by Craig Hutchinson <craig@â¦>):
Okay so I have learnt lots of new things today. I have a pretty good
solution wihtout the performance issue of a mutex. I think boost probably
has a call_once too but used std in this test:
{{{
#include <mutex>
...
static std::once_flag l_onceFlag;
SYSTEM_INFO system_info()
{
static SYSTEM_INFO si;
std::call_once(l_onceFlag, [&]
{
si = system_info_();
});
return si;
}
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9355#comment:16> 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:14 UTC