MCPcopy Create free account
hub / github.com/apache/brpc / ResetHistory

Method ResetHistory

test/condition_variable_unittest.cc:569–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

567}
568
569void WorkQueue::ResetHistory() {
570 for (int i = 0; i < thread_count_; ++i) {
571 assignment_history_[i] = 0;
572 completion_history_[i] = 0;
573 }
574}
575
576int WorkQueue::GetMinCompletionsByWorkerThread() const {
577 int minumum = completion_history_[0];

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected