MCPcopy Create free account
hub / github.com/Tencent/phxqueue / IsAllTaskFinish

Method IsAllTaskFinish

phxqueue/consumer/consumer.cpp:296–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296bool Consumer::IsAllTaskFinish() {
297 if (impl_->nhandle_task_finished == impl_->items.size() && impl_->nbatch_handle_task_finished == impl_->opt.nbatch_handler) return true;
298 co_cond_timedwait(impl_->cond, 1000);
299 return false;
300}
301
302
303void Consumer::HandleRoutineFunc(const int idx) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected