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

Method GetInstance

phxqueue/comm/notifierpool.cpp:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97
98NotifierPool *NotifierPool::GetInstance() {
99 static NotifierPool pool;
100 return &pool;
101}
102
103unique_ptr<Notifier> NotifierPool::Get() {
104 lock_guard<mutex> lock_guard(impl_->lock);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected