mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-09 23:24:01 +00:00
fix bug introduced after switch to boost::context::fiber
This commit is contained in:
parent
2ed71ab0f1
commit
0cc5d85b89
@ -67,7 +67,8 @@ push_coroutine< T >::control_block::control_block( context::preallocated palloc,
|
|||||||
// set termination flags
|
// set termination flags
|
||||||
state |= state_t::complete;
|
state |= state_t::complete;
|
||||||
// jump back
|
// jump back
|
||||||
return std::move( other->c).resume();
|
other->c = std::move( other->c).resume();
|
||||||
|
return std::move( other->c);
|
||||||
},
|
},
|
||||||
std::forward< Fn >( fn) ) },
|
std::forward< Fn >( fn) ) },
|
||||||
#else
|
#else
|
||||||
@ -189,7 +190,8 @@ push_coroutine< T & >::control_block::control_block( context::preallocated pallo
|
|||||||
// set termination flags
|
// set termination flags
|
||||||
state |= state_t::complete;
|
state |= state_t::complete;
|
||||||
// jump back
|
// jump back
|
||||||
other->c = std::move( other->c).resume();
|
other->c = std::move( other->c).resume();
|
||||||
|
return std::move( other->c);
|
||||||
},
|
},
|
||||||
std::forward< Fn >( fn) ) },
|
std::forward< Fn >( fn) ) },
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user