| 654 | } |
| 655 | |
| 656 | static bool cv2_poll(cv2_context_t *ctx) { |
| 657 | if (ctx->status != CBM_COVERAGE_PARSE_OK) |
| 658 | return false; |
| 659 | ctx->work = 0; |
| 660 | if (ctx->cancelled && ctx->cancelled(ctx->cancel_context)) |
| 661 | return cv2_fail(ctx, CBM_COVERAGE_PARSE_CANCELLED); |
| 662 | return true; |
| 663 | } |
| 664 | |
| 665 | static bool cv2_work(cv2_context_t *ctx, unsigned units) { |
| 666 | ctx->work += units; |