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

Method GetLockInfo

phxqueue_phxrpc/app/lock/lock_tool_impl.cpp:48–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48int LockToolImpl::GetLockInfo(phxrpc::OptMap &opt_map) {
49 phxqueue::comm::proto::GetLockInfoRequest req;
50 phxqueue::comm::proto::GetLockInfoResponse resp;
51
52 //TODO: fill req from opt_map
53
54
55 LockClient client;
56 int ret = client.GetLockInfo(req, &resp);
57 printf("%s return %d\n", __func__, ret);
58 printf("resp: {\n%s}\n", resp.DebugString().c_str());
59
60 return ret;
61}
62
63int LockToolImpl::AcquireLock(phxrpc::OptMap &opt_map) {
64 phxqueue::comm::proto::AcquireLockRequest req;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected