示例#1
0
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);
}
示例#2
0
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);
    }
}
示例#3
0
void echo( boost::coroutines::coroutine< void >::push_type & c, int i)
{
    std::cout << i << ":"; 
    echoSSE(i);
    c();
}