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

Function HandleRoutineRun

phxqueue/consumer/consumer.cpp:360–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360static void *HandleRoutineRun(void *arg) {
361 co_enable_hook_sys();
362
363 ConsumeCtx_t *ctx = static_cast<ConsumeCtx_t*>(arg);
364
365 while (1) {
366 if (ctx->consumer->HasHandleTasks(ctx->cid)) {
367 co_yield_ct();
368 continue;
369 }
370 ctx->consumer->ProcessAllHandleTasks(ctx->cid);
371 }
372 return nullptr;
373}
374
375static void *BatchHandleRoutineRun(void *arg) {
376 co_enable_hook_sys();

Callers

nothing calls this directly

Calls 2

HasHandleTasksMethod · 0.80
ProcessAllHandleTasksMethod · 0.80

Tested by

no test coverage detected