Navigation
API > API/Runtime > API/Runtime/ImageWriteQueue > API/Runtime/ImageWriteQueue/IImageWriteQueue
References
| Module | ImageWriteQueue |
| Header | /Engine/Source/Runtime/ImageWriteQueue/Public/ImageWriteQueue.h |
| Include | #include "ImageWriteQueue.h" |
TFuture< void > CreateFence
&40;
const TFunction< void()> & InOnFenceReached
&41;
Remarks
- (thread-safe) Create a fence at the current position in the queue. The future and callback will be invoked when all existing tasks in the queue have been completed.
-
Where the queue is empty, the future will be immediately fulfilled, and callback invoked on the next main thread tick. A future that is fulfilled when the current state of the queue has been completely finished
Parameters
| Name | Description |
|---|---|
| InOnFenceReached | A callback to be invoked when the fence has been reached (ie all work ahead of it in the queue has been completed) |