| 2514 | } |
| 2515 | |
| 2516 | void ClientRequestState::UnRegisterCompletedRPCs() { |
| 2517 | lock_guard<mutex> l(lock_); |
| 2518 | for (auto iter = pending_rpcs_.begin(); iter != pending_rpcs_.end();) { |
| 2519 | RpcEventHandler::InvocationContext* rpc_context = *iter; |
| 2520 | uint64_t read_ns = 0, write_ns = 0; |
| 2521 | if (rpc_context->UnRegisterCompleted(read_ns, write_ns)) { |
| 2522 | rpc_read_timer_->Add(read_ns); |
| 2523 | rpc_write_timer_->Add(write_ns); |
| 2524 | iter = pending_rpcs_.erase(iter); |
| 2525 | } else { |
| 2526 | ++iter; |
| 2527 | } |
| 2528 | } |
| 2529 | } |
| 2530 | |
| 2531 | void ClientRequestState::UnRegisterRemainingRPCs() { |
| 2532 | lock_guard<mutex> l(lock_); |
no test coverage detected