boost::context::execution_context< int > echo( boost::context::execution_context< int > && ctx, int i) { for (;;) { std::cout << i; echoSSE( i); std::cout << " "; std::tie( ctx, i) = ctx( 0); } return std::move( ctx); }
void echo( intptr_t param) { int i = ( int) ctx::jump_fcontext( & fc, fcm, 0); for (;;) { std::cout << i; echoSSE( i); std::cout << " "; i = ( int) ctx::jump_fcontext( & fc, fcm, 0); } }
void echo( boost::coroutines::coroutine< void >::push_type & c, int i) { std::cout << i << ":"; echoSSE(i); c(); }