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

Method GetNumThreadsTakingAssignments

test/condition_variable_unittest.cc:590–596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

588}
589
590int WorkQueue::GetNumThreadsTakingAssignments() const {
591 int count = 0;
592 for (int i = 0; i < thread_count_; ++i)
593 if (assignment_history_[i])
594 count++;
595 return count;
596}
597
598int WorkQueue::GetNumThreadsCompletingTasks() const {
599 int count = 0;

Callers 1

TEST_FFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected