| 18 | } |
| 19 | |
| 20 | void StatusTimer::timer_callback(unsigned int) |
| 21 | { |
| 22 | acl::string* buf = new acl::string(256); |
| 23 | ServerManager::get_instance().statusToJson(*buf); |
| 24 | |
| 25 | // 发起一个 HTTP 请求过程,将之将由子线程处理 |
| 26 | HttpClientRpc* rpc = new HttpClientRpc(buf, var_cfg_status_servers); |
| 27 | rpc_manager::get_instance().fork(rpc); |
| 28 | } |
nothing calls this directly
no test coverage detected