#include <iostream>
#include <time.h>
{
public :
a_example_t( context_t ctx )
{
}
{
so_5::send_delayed< finish >( *this, std::chrono::milliseconds(500) );
const auto tid = td.
tid();
return tid && thr_id == *tid;
} ) );
make_ping_pong_pair(
make_ping_pong_pair(
}
private :
void on_finish( mhood_t<finish> )
{
}
{
so_5::send_delayed< ping >(
std::chrono::milliseconds(25) );
} )
.
event( mbox, [mbox, &coop]( mhood_t<pong> ) {
so_5::send_delayed< ping >(
std::chrono::milliseconds(25) );
} );
so_5::send_delayed< pong >(
std::chrono::milliseconds(25) );
} );
} );
}
};
int main()
{
try
{
} );
},
params.message_delivery_tracer(
params.message_delivery_tracer_filter(
} );
}
catch( const std::exception & ex )
{
std::cerr << "Error: " << ex.what() << std::endl;
return 1;
}
return 0;
}