MCPcopy Create free account
hub / github.com/Tencent/phxqueue / GetInstance

Method GetInstance

phxqueue/comm/resourcepool.h:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 ~ResourcePoll() {}
31
32 static ResourcePoll *GetInstance() {
33 static ResourcePoll pool;
34 return &pool;
35 }
36
37 std::unique_ptr<ResourceType> Get(const KeyType &key) {
38 std::lock_guard<std::mutex> lg(lock_);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected