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

Method LockClient

phxqueue_phxrpc/app/lock/lock_client.cpp:50–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50LockClient::LockClient() {
51 static mutex monitor_mutex;
52 if (!global_lockclient_monitor_.get()) {
53 monitor_mutex.lock();
54 if (!global_lockclient_monitor_.get()) {
55 global_lockclient_monitor_ = phxrpc::MonitorFactory::GetFactory()
56 ->CreateClientMonitor(GetPackageName());
57 }
58 global_lockclient_config_.SetClientMonitor(global_lockclient_monitor_);
59 monitor_mutex.unlock();
60 }
61}
62
63LockClient::~LockClient() {}
64

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected