| 10 | using VFSReaderFutureLauncher = skr::FutureLauncher<bool>; |
| 11 | |
| 12 | bool VFSRAMReader::fetch(SkrAsyncServicePriority priority, IORequestId request) SKR_NOEXCEPT |
| 13 | { |
| 14 | auto pStatus = io_component<IOStatusComponent>(request.get()); |
| 15 | const auto loaded = (pStatus->getStatus() == SKR_IO_STAGE_LOADED); |
| 16 | const auto cancelled = (pStatus->getStatus() == SKR_IO_STAGE_CANCELLED); |
| 17 | if (loaded || cancelled) // already processed by other readers |
| 18 | { |
| 19 | loaded_requests[priority].enqueue(request); |
| 20 | inc_processed(priority); |
| 21 | } |
| 22 | else if (auto pComp = io_component<IOStatusComponent>(request.get())) |
| 23 | { |
| 24 | SKR_ASSERT(pComp->getStatus() == SKR_IO_STAGE_RESOLVING); |
| 25 | fetched_requests[priority].enqueue(request); |
| 26 | inc_processing(priority); |
| 27 | } |
| 28 | return true; |
| 29 | } |
| 30 | |
| 31 | uint64_t VFSRAMReader::get_prefer_batch_size() const SKR_NOEXCEPT |
| 32 | { |
no test coverage detected