Module |
|
Header |
/Engine/Source/Runtime/ImageWriteQueue/Public/ImageWriteQueue.h |
Include |
#include "ImageWriteQueue.h" |
TFuture< bool > Enqueue
(
TUniquePtr< IImageWriteTaskBase > && InTask,
bool bInBlockIfAtCapacity
)
(thread-safe) Enqueue a new asynchronous image write task.
A future to the completion state of the task (success or failure), or an invalid future in the case where the task could not be dispatched
Parameter |
Description |
---|---|
InTask |
A unique pointer to a task to perform on a thread when available. Pass with MoveTemp(). |
bInBlockIfAtCapacity |
Wait until the number of pending tasks does not exceed the queue capacity. If false and the number of pending tasks does exceed, the function will return and will not enqueue the task. |