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

Method AcquireLock

phxqueue_phxrpc/consumer/consumer.cpp:98–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98phxqueue::comm::RetCode
99Consumer::AcquireLock(const phxqueue::comm::proto::AcquireLockRequest &req,
100 phxqueue::comm::proto::AcquireLockResponse &resp) {
101 static __thread LockClient lock_client;
102 auto ret = lock_client.ProtoAcquireLock(req, resp);
103 if (phxqueue::comm::RetCode::RET_OK != ret) {
104 QLErr("ProtoAcquireLock ret %d", phxqueue::comm::as_integer(ret));
105 }
106 return ret;
107}
108
109
110} // namespace consumer

Callers

nothing calls this directly

Calls 2

as_integerFunction · 0.85
ProtoAcquireLockMethod · 0.80

Tested by

no test coverage detected