47 AllocationPolicyMask = 0xf,
49 RequestReadOnlyPage = 16,
52 ReceiveProgressMessages = 32
67 return _task->getFinishedRequest(_tileId,
found);
89 return _task->waitForProcessAllPages(_id);
100 return _nextTileRequestId++;
115 this->image =
nullptr;
121 this->handler =
nullptr;
133 ProcessAllPagesHandler* handler;
134 ManagedSubImage* image;
139 ManagedSubImage* takeRequestIfAvailable(BackgroundRequestId
tileId,
bool&
found);
142 ManagedSubImage* getFinishedRequest(BackgroundRequestId
tileId,
bool&
found);
145 bool waitForProcessAllPages(BackgroundRequestId
id);
148 void addFinishedRequest(BackgroundRequestId
tileId, ManagedSubImage* image);
151 void addFinishedRequest(BackgroundRequestId
tileId, ProcessAllPagesHandler* handler);
154 std::deque<RequestResult> _availableTiles;
an asynchronous process all pages request (copyable!)
bool waitUntilFinished()
Wait until the process all pages request has finished, returns false if the request failed.
ProcessAllPagesRequest(BackgroundRequestId tileId, ImagingBackgroundTask *task)
Base class for handlers that are used for the Module::processAllPages facility.