Eliminate local variable that was shadowing data member variable stack_ctx in context object, which resulted in an assert when the context object was destructed.
This commit is contained in:
parent
a254e5ff28
commit
34296fbb4a
1 changed files with 0 additions and 1 deletions
|
|
@ -52,7 +52,6 @@ namespace fc {
|
||||||
cur_task(0)
|
cur_task(0)
|
||||||
{
|
{
|
||||||
#if BOOST_VERSION >= 105400
|
#if BOOST_VERSION >= 105400
|
||||||
bco::stack_context stack_ctx;
|
|
||||||
size_t stack_size = bco::stack_allocator::default_stacksize() * 4;
|
size_t stack_size = bco::stack_allocator::default_stacksize() * 4;
|
||||||
alloc.allocate(stack_ctx, stack_size);
|
alloc.allocate(stack_ctx, stack_size);
|
||||||
my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf);
|
my_context = bc::make_fcontext( stack_ctx.sp, stack_ctx.size, sf);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue