| 358 | } |
| 359 | |
| 360 | static 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 | |
| 375 | static void *BatchHandleRoutineRun(void *arg) { |
| 376 | co_enable_hook_sys(); |
nothing calls this directly
no test coverage detected