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

Method GetLockInfo

phxqueue_phxrpc/consumer/consumer.cpp:87–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85}
86
87phxqueue::comm::RetCode
88Consumer::GetLockInfo(const phxqueue::comm::proto::GetLockInfoRequest &req,
89 phxqueue::comm::proto::GetLockInfoResponse &resp) {
90 static __thread LockClient lock_client;
91 auto ret = lock_client.ProtoGetLockInfo(req, resp);
92 if (phxqueue::comm::RetCode::RET_OK != ret) {
93 QLErr("ProtoGetLockInfo ret %d", phxqueue::comm::as_integer(ret));
94 }
95 return ret;
96}
97
98phxqueue::comm::RetCode
99Consumer::AcquireLock(const phxqueue::comm::proto::AcquireLockRequest &req,

Callers

nothing calls this directly

Calls 2

as_integerFunction · 0.85
ProtoGetLockInfoMethod · 0.80

Tested by

no test coverage detected