示例#1
0
    static void process_start(
        const std::error_code& ec,
        asio::io_service& io_service)
      {
      assert(!ec);

      std::shared_ptr<myapp> app(new myapp(io_service));
      io_service.post(std::bind(&myapp::start, app));
      }
示例#2
0
文件: WorkQ.hpp 项目: urykhy/rpc
 void insert(std::function<void(void)> f) {
     io_service.post(f);
 }