use a guarded stack for coroutines in boost version 1.61

This commit is contained in:
decimad 2016-07-05 18:02:50 +02:00 committed by Maciej Suminski
parent 05f849a746
commit 78bc3c65de
1 changed files with 2 additions and 1 deletions

View File

@ -35,6 +35,7 @@
#include <boost/context/fcontext.hpp> #include <boost/context/fcontext.hpp>
#else #else
#include <boost/context/execution_context.hpp> #include <boost/context/execution_context.hpp>
#include <boost/context/protected_fixedsize_stack.hpp>
#endif #endif
/** /**
@ -191,7 +192,7 @@ public:
m_callee = new context_type( boost::context::make_fcontext( sp, m_stackSize, callerStub ) ); m_callee = new context_type( boost::context::make_fcontext( sp, m_stackSize, callerStub ) );
#else #else
m_callee = new context_type( std::allocator_arg_t(), m_callee = new context_type( std::allocator_arg_t(),
boost::context::fixedsize_stack( c_defaultStackSize ), &COROUTINE::callerStub ); boost::context::protected_fixedsize_stack( c_defaultStackSize ), &COROUTINE::callerStub );
#endif #endif
#if BOOST_VERSION <= 106000 #if BOOST_VERSION <= 106000