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

Method statusToJson

app/master/tools/master_dispatch/server/server/ServerManager.cpp:147–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147void ServerManager::statusToJson(acl::string& buf)
148{
149 // 因为该方法将由子线程调用,所以对单例成员变量 json_ 进行加锁保护
150 lock_.lock();
151 json_.build_json(buf);
152 lock_.unlock();
153}
154
155void ServerManager::statusToXml(acl::string& buf)
156{

Callers 2

timer_callbackMethod · 0.80
doPostMethod · 0.80

Calls 3

build_jsonMethod · 0.80
lockMethod · 0.45
unlockMethod · 0.45

Tested by

no test coverage detected