Collection of resource loading tasks that have been already been loaded by a loader thread and are waiting to be finished by the main thread.
More...
#include <kanzi/core.ui/resource/resource_manager.hpp>
|
size_t | size () const |
| Returns the number of load tasks in the finishing queue that are waiting to be finished. More...
|
|
bool | empty () const |
| Indicates whether the finishing queue contains load tasks that are waiting to be finished. More...
|
|
string_view | getTaskUrl (size_t index) const |
| Returns the URL of the load task with the given index in the finishing queue. More...
|
|
void | finishTask (size_t index) |
| Completes the finishing part of a load task with the given index in the finishing queue. More...
|
|
Collection of resource loading tasks that have been already been loaded by a loader thread and are waiting to be finished by the main thread.
You can override the Application::progressDeploymentQueueOverride and access the finishing queue with ResourceManager::getFinishingQueue to control when and which resources are deployed.
size_t kanzi::ResourceManager::FinishingQueue::size |
( |
| ) |
const |
|
inline |
Returns the number of load tasks in the finishing queue that are waiting to be finished.
- Returns
- The number of load tasks in the finishing queue.
bool kanzi::ResourceManager::FinishingQueue::empty |
( |
| ) |
const |
|
inline |
Indicates whether the finishing queue contains load tasks that are waiting to be finished.
- Returns
- If the queue is empty, true, otherwise false.
string_view kanzi::ResourceManager::FinishingQueue::getTaskUrl |
( |
size_t |
index | ) |
const |
Returns the URL of the load task with the given index in the finishing queue.
- Parameters
-
index | Index the load task. |
- Returns
- The URL of the load task. Valid until the load task if completed.
void kanzi::ResourceManager::FinishingQueue::finishTask |
( |
size_t |
index | ) |
|
Completes the finishing part of a load task with the given index in the finishing queue.
Note that this removes the task from the finishing queue and changes the indices of the remaining items.
- Parameters
-
index | Index of the load task that is finished. |
The documentation for this class was generated from the following file: