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:
Oliver Kowalke 2015-04-03 09:56:46 +02:00
parent 673b2e2878
commit bca9dd2a13
2 changed files with 0 additions and 18 deletions

View File

@ -48,9 +48,6 @@ pull_coroutine< T >::control_block::control_block( context::preallocated palloc,
}
// set termination flags
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_),
state( static_cast< int >( state_t::unwind) ) {
@ -115,9 +112,6 @@ pull_coroutine< T & >::control_block::control_block( context::preallocated pallo
}
// set termination flags
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_),
state( static_cast< int >( state_t::unwind) ) {
@ -181,9 +175,6 @@ pull_coroutine< void >::control_block::control_block( context::preallocated pall
}
// set termination flags
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_),
state( static_cast< int >( state_t::unwind) ) {

View File

@ -49,9 +49,6 @@ push_coroutine< T >::control_block::control_block( context::preallocated palloc,
}
// set termination flags
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_),
state( static_cast< int >( state_t::unwind) ),
@ -137,9 +134,6 @@ push_coroutine< T & >::control_block::control_block( context::preallocated pallo
}
// set termination flags
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_),
state( static_cast< int >( state_t::unwind) ),
@ -205,9 +199,6 @@ push_coroutine< void >::control_block::control_block( context::preallocated pall
}
// set termination flags
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_),
state( static_cast< int >( state_t::unwind) ) {