| 342 | } |
| 343 | |
| 344 | bool RunnerBase::cancel_(IIORequest* rq, SkrAsyncServicePriority priority) SKR_NOEXCEPT |
| 345 | { |
| 346 | if (auto pComp = io_component<IOStatusComponent>(rq)) |
| 347 | { |
| 348 | pComp->setStatus(SKR_IO_STAGE_CANCELLED); |
| 349 | if (pComp->needPollFinish()) |
| 350 | { |
| 351 | finish_queues[priority].enqueue(rq); |
| 352 | pComp->setFinishStep(SKR_ASYNC_IO_FINISH_STEP_WAIT_CALLBACK_POLLING); |
| 353 | } |
| 354 | else |
| 355 | { |
| 356 | pComp->setFinishStep(SKR_ASYNC_IO_FINISH_STEP_DONE); |
| 357 | } |
| 358 | skr_atomic64_add_relaxed(&processing_request_counts[priority], -1); |
| 359 | } |
| 360 | return true; |
| 361 | } |
| 362 | |
| 363 | bool RunnerBase::complete_(IIORequest* rq, SkrAsyncServicePriority priority) SKR_NOEXCEPT |
| 364 | { |
nothing calls this directly
no test coverage detected