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

Method AcquireLock

phxqueue_phxrpc/app/lock/lock_tool_impl.cpp:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63int LockToolImpl::AcquireLock(phxrpc::OptMap &opt_map) {
64 phxqueue::comm::proto::AcquireLockRequest req;
65 phxqueue::comm::proto::AcquireLockResponse resp;
66
67 //TODO: fill req from opt_map
68
69
70 LockClient client;
71 int ret = client.AcquireLock(req, &resp);
72 printf("%s return %d\n", __func__, ret);
73 printf("resp: {\n%s}\n", resp.DebugString().c_str());
74
75 return ret;
76}
77

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected