コード例 #1
0
ファイル: test.cpp プロジェクト: 7ev3n/hpx
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();
}
コード例 #2
0
ファイル: action.hpp プロジェクト: 12307/EasyDarwin
        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;
        }
コード例 #3
0
ファイル: peg.hpp プロジェクト: kik/cpppeg
 static bool start(T& t, Context *ctx) {
   return call_action(t, ctx, (dummy_type<0>*)0);
 }