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

Method GetNumThreadsCompletingTasks

test/condition_variable_unittest.cc:598–604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

596}
597
598int WorkQueue::GetNumThreadsCompletingTasks() const {
599 int count = 0;
600 for (int i = 0; i < thread_count_; ++i)
601 if (completion_history_[i])
602 count++;
603 return count;
604}
605
606int WorkQueue::GetNumberOfCompletedTasks() const {
607 int total = 0;

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected