mirror of
https://github.com/boostorg/coroutine2.git
synced 2025-05-10 07:34:03 +00:00
remove jump back to caller after termination
- if coroutine function terminates execution_context already jumps back to its parent (caller)
This commit is contained in:
parent
673b2e2878
commit
bca9dd2a13
@ -48,9 +48,6 @@ pull_coroutine< T >::control_block::control_block( context::preallocated palloc,
|
|||||||
}
|
}
|
||||||
// set termination flags
|
// set termination flags
|
||||||
state |= static_cast< int >( state_t::complete);
|
state |= static_cast< int >( state_t::complete);
|
||||||
// jump back to caller
|
|
||||||
caller( preserve_fpu);
|
|
||||||
BOOST_ASSERT_MSG( false, "pull_coroutine is complete");
|
|
||||||
}),
|
}),
|
||||||
preserve_fpu( preserve_fpu_),
|
preserve_fpu( preserve_fpu_),
|
||||||
state( static_cast< int >( state_t::unwind) ) {
|
state( static_cast< int >( state_t::unwind) ) {
|
||||||
@ -115,9 +112,6 @@ pull_coroutine< T & >::control_block::control_block( context::preallocated pallo
|
|||||||
}
|
}
|
||||||
// set termination flags
|
// set termination flags
|
||||||
state |= static_cast< int >( state_t::complete);
|
state |= static_cast< int >( state_t::complete);
|
||||||
// jump back to caller
|
|
||||||
caller( preserve_fpu);
|
|
||||||
BOOST_ASSERT_MSG( false, "pull_coroutine is complete");
|
|
||||||
}),
|
}),
|
||||||
preserve_fpu( preserve_fpu_),
|
preserve_fpu( preserve_fpu_),
|
||||||
state( static_cast< int >( state_t::unwind) ) {
|
state( static_cast< int >( state_t::unwind) ) {
|
||||||
@ -181,9 +175,6 @@ pull_coroutine< void >::control_block::control_block( context::preallocated pall
|
|||||||
}
|
}
|
||||||
// set termination flags
|
// set termination flags
|
||||||
state |= static_cast< int >( state_t::complete);
|
state |= static_cast< int >( state_t::complete);
|
||||||
// jump back to caller
|
|
||||||
caller( preserve_fpu);
|
|
||||||
BOOST_ASSERT_MSG( false, "pull_coroutine is complete");
|
|
||||||
}),
|
}),
|
||||||
preserve_fpu( preserve_fpu_),
|
preserve_fpu( preserve_fpu_),
|
||||||
state( static_cast< int >( state_t::unwind) ) {
|
state( static_cast< int >( state_t::unwind) ) {
|
||||||
|
@ -49,9 +49,6 @@ push_coroutine< T >::control_block::control_block( context::preallocated palloc,
|
|||||||
}
|
}
|
||||||
// set termination flags
|
// set termination flags
|
||||||
state |= static_cast< int >( state_t::complete);
|
state |= static_cast< int >( state_t::complete);
|
||||||
// jump back to caller
|
|
||||||
caller( preserve_fpu_);
|
|
||||||
BOOST_ASSERT_MSG( false, "push_coroutine is complete");
|
|
||||||
}),
|
}),
|
||||||
preserve_fpu( preserve_fpu_),
|
preserve_fpu( preserve_fpu_),
|
||||||
state( static_cast< int >( state_t::unwind) ),
|
state( static_cast< int >( state_t::unwind) ),
|
||||||
@ -137,9 +134,6 @@ push_coroutine< T & >::control_block::control_block( context::preallocated pallo
|
|||||||
}
|
}
|
||||||
// set termination flags
|
// set termination flags
|
||||||
state |= static_cast< int >( state_t::complete);
|
state |= static_cast< int >( state_t::complete);
|
||||||
// jump back to caller
|
|
||||||
caller( preserve_fpu_);
|
|
||||||
BOOST_ASSERT_MSG( false, "push_coroutine is complete");
|
|
||||||
}),
|
}),
|
||||||
preserve_fpu( preserve_fpu_),
|
preserve_fpu( preserve_fpu_),
|
||||||
state( static_cast< int >( state_t::unwind) ),
|
state( static_cast< int >( state_t::unwind) ),
|
||||||
@ -205,9 +199,6 @@ push_coroutine< void >::control_block::control_block( context::preallocated pall
|
|||||||
}
|
}
|
||||||
// set termination flags
|
// set termination flags
|
||||||
state |= static_cast< int >( state_t::complete);
|
state |= static_cast< int >( state_t::complete);
|
||||||
// jump back to caller
|
|
||||||
caller( preserve_fpu_);
|
|
||||||
BOOST_ASSERT_MSG( false, "push_coroutine is complete");
|
|
||||||
}),
|
}),
|
||||||
preserve_fpu( preserve_fpu_),
|
preserve_fpu( preserve_fpu_),
|
||||||
state( static_cast< int >( state_t::unwind) ) {
|
state( static_cast< int >( state_t::unwind) ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user