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

Method BatchHandleRoutineFunc

phxqueue/consumer/consumer.cpp:336–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334}
335
336void Consumer::BatchHandleRoutineFunc(const int idx) {
337 comm::ConsumerConsumeBP::GetThreadInstance()->OnBatchHandleRoutineFunc(impl_->cc, idx);
338
339 BeforeBatchHandle(impl_->cc, impl_->items, idx);
340
341 comm::RetCode ret;
342 if (comm::RetCode::RET_OK != (ret = BatchHandle(impl_->cc, impl_->items, idx))) {
343 QLErr("Handle ret %d", comm::as_integer(ret));
344 return;
345 }
346
347 AfterBatchHandle(impl_->cc, impl_->items, idx);
348
349 return;
350}
351
352static void *DispatchRoutineRun(void *arg) {
353 co_enable_hook_sys();

Callers

nothing calls this directly

Calls 2

as_integerFunction · 0.85

Tested by

no test coverage detected