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));
      }
Exemple #2
0
 void insert(std::function<void(void)> f) {
     io_service.post(f);
 }