void init( so_5::environment_t & env ) { env.introduce_coop( []( so_5::coop_t & coop ) { coop.make_agent< a_test_t >( coop.environment().create_mbox() ); } ); }
void init( so_5::environment_t & env ) { env.introduce_coop( []( so_5::coop_t & coop ) { coop.set_exception_reaction( so_5::shutdown_sobjectizer_on_exception ); coop.make_agent< a_test_t >(); } ); }
void init( so_5::environment_t & env ) { env.introduce_coop( so_5::disp::active_obj::create_private_disp( env )->binder(), []( so_5::coop_t & coop ) { auto a_test = coop.make_agent< a_test_t >(); coop.make_agent< a_request_initator_t >( a_test->so_direct_mbox() ); } ); }
void init( so_5::environment_t & env ) { env.introduce_coop( so_5::disp::active_obj::create_private_disp( env )->binder(), [&]( so_5::coop_t & coop ) { const auto mbox = env.create_mbox(); coop.make_agent< a_provider_t >( mbox ); coop.make_agent< a_consumer_t >( mbox ); } ); }