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 08:48:05
#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@â¦>):
A mutex based solution would be:
{{{
SYSTEM_INFO system_info()
{
boost::lock_guard<boost::recursive_mutex> lock(m_guard);
static SYSTEM_INFO si = system_info_();
return si;
}
}}}
This isn't optimal though as there should be a way to only block on first
entry to the function somehow.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/9355#comment:14> 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