pull/19696/head
Yunjia Wang 5 years ago
parent f50301fde8
commit 3ec5726216
  1. 8
      src/core/lib/iomgr/executor/mpmcqueue.cc

@ -33,8 +33,8 @@ inline void* InfLenFIFOQueue::PopFront() {
// Updates Stats when trace flag turned on. // Updates Stats when trace flag turned on.
if (GRPC_TRACE_FLAG_ENABLED(grpc_thread_pool_trace)) { if (GRPC_TRACE_FLAG_ENABLED(grpc_thread_pool_trace)) {
gpr_timespec wait_time = gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), gpr_timespec wait_time =
queue_head_->insert_time); gpr_time_sub(gpr_now(GPR_CLOCK_MONOTONIC), queue_head_->insert_time);
stats_.num_completed++; stats_.num_completed++;
stats_.total_queue_time = gpr_time_add(stats_.total_queue_time, wait_time); stats_.total_queue_time = gpr_time_add(stats_.total_queue_time, wait_time);
stats_.max_queue_time = gpr_time_max( stats_.max_queue_time = gpr_time_max(
@ -184,8 +184,6 @@ void InfLenFIFOQueue::RemoveWaiter(Waiter* waiter) {
waiter->prev->next = waiter->next; waiter->prev->next = waiter->next;
} }
InfLenFIFOQueue::Waiter* InfLenFIFOQueue::TopWaiter() { InfLenFIFOQueue::Waiter* InfLenFIFOQueue::TopWaiter() { return waiters_.next; }
return waiters_.next;
}
} // namespace grpc_core } // namespace grpc_core

Loading…
Cancel
Save