24#include <osl/mutex.hxx>
60#if OSL_DEBUG_LEVEL >= 2
The request queue stores requests that are described by the Request sorted according to priority clas...
bool IsEmpty()
Returns <TRUE> when there is no element in the queue.
int mnMaximumPriority
An upper bound of the highest priority of all elements in the queues.
bool RemoveRequest(CacheKey aKey)
Remove the specified request from the queue.
::osl::Mutex & GetMutex()
Return the mutex that guards the access to the priority queue.
std::unique_ptr< Container > mpRequestQueue
void AddRequest(CacheKey aKey, RequestPriorityClass eRequestClass)
Insert a request with highest or lowest priority in its priority class.
RequestQueue(SharedCacheContext pCacheContext)
RequestPriorityClass GetFrontPriorityClass()
SharedCacheContext mpCacheContext
void PopFront()
Really a synonym for RemoveRequest(GetFront());.
virtual void PageInDestruction(const SdrPage &rPage) override
Ensure we don't hand out a page deleted before anyone got a chance to process it.
void Clear()
Remove all requests from the queue.
void ChangeClass(CacheKey aKey, RequestPriorityClass eNewRequestClass)
Change the priority class of the specified request.
int mnMinimumPriority
A lower bound of the lowest priority of all elements in the queues.
CacheKey GetFront()
Get the request with the highest priority int the highest priority class.
RequestPriorityClass
Each request for a preview creation has a priority.
std::shared_ptr< CacheContext > SharedCacheContext