| 96 | } |
| 97 | |
| 98 | phxqueue::comm::RetCode |
| 99 | Consumer::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 |
nothing calls this directly
no test coverage detected