MCPcopy Create free account
hub / github.com/acl-dev/acl / timer_callback

Method timer_callback

app/master/tools/master_dispatch/server/status/StatusTimer.cpp:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void 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}

Callers

nothing calls this directly

Calls 2

statusToJsonMethod · 0.80
forkMethod · 0.45

Tested by

no test coverage detected