Navigation
API > API/Plugins > API/Plugins/MediaIOCore
References
| Module | MediaIOCore |
| Header | /Engine/Plugins/Media/MediaIOFramework/Source/MediaIOCore/Public/OrderedAsyncGate.h |
| Include | #include "OrderedAsyncGate.h" |
Syntax
class FOrderedAsyncGate
Remarks
Class to ensure that async tasks execute any critical path in order. It works like clients at a shop getting a number, waiting for their turn, and when they are done they give up their turn so that the next number can be serviced. Its functions can be called from any thread.
Functions
| Type | Name | Description | |
|---|---|---|---|
| uint64 | GetANumber () |
Gets a number that represents the when the number holder will get their turn. | |
| void | GiveUpTurn
(
const uint32 Number |
Call this function when you are ready to give up your turn. | |
| bool | Returns true if it is the turn of the given number | ||
| void | WaitForTurn
(
const uint32 Number |
This function will block until it is the turn of the given number to execute. |