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

Method BatchHandleTaskFinish

phxqueue/consumer/consumer.cpp:291–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291void Consumer::BatchHandleTaskFinish() {
292 ++impl_->nbatch_handle_task_finished;
293 if (impl_->nhandle_task_finished == impl_->items.size() && impl_->nbatch_handle_task_finished == impl_->opt.nbatch_handler) co_cond_signal(impl_->cond);
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;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected