| 408 | } |
| 409 | |
| 410 | void application::exec() { |
| 411 | { |
| 412 | boost::asio::io_service::work work(*io_serv); |
| 413 | (void)work; |
| 414 | bool more = true; |
| 415 | while( more || io_serv->run_one() ) { |
| 416 | while( io_serv->poll_one() ) {} |
| 417 | // execute the highest priority item |
| 418 | more = pri_queue.execute_highest(); |
| 419 | } |
| 420 | |
| 421 | shutdown(); /// perform synchronous shutdown |
| 422 | } |
| 423 | io_serv.reset(); |
| 424 | } |
| 425 | |
| 426 | void application::write_default_config(const bfs::path& cfg_file) { |
| 427 | if(!bfs::exists(cfg_file.parent_path())) |
no test coverage detected