int hpx_main(boost::program_options::variables_map &vm) { { hpx::cout << "Hello World!\n" << hpx::flush; hpx::id_type id = hpx::new_<test_server>(hpx::find_here()).get(); hpx::future<void> f = hpx::async(call_action(), id); f.get(); HPX_TEST(test_server::called); } return hpx::finalize(); }
bool parse_main(Iterator& first, Iterator const& last , Context const& context, RuleContext& rcontext, Attribute& attr) const { Iterator save = first; if (this->subject.parse(first, last, context, rcontext, attr)) { if (call_action(first, last, context, rcontext, attr)) return true; // reset iterators if semantic action failed the match // retrospectively first = save; } return false; }
static bool start(T& t, Context *ctx) { return call_action(t, ctx, (dummy_type<0>*)0); }