Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async > API/Runtime/Core/Async/FGraphEvent > API/Runtime/Core/Async/FGraphEvent/DispatchSubsequents
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h |
| Include | #include "Async/TaskGraphInterfaces.h" |
| Source | /Engine/Source/Runtime/Core/Private/Async/TaskGraph.cpp |
void DispatchSubsequents
(
TArray < FBaseGraphTask * > & NewTasks,
ENamedThreads::Type CurrentThreadIfKnown,
bool bInternal
)
Remarks
"Complete" the event. This grabs the list of subsequents and atomically closes it. Then for each subsequent and for each item in "NewTasks" it reduces the number of prerequisites outstanding and if that drops to zero, the task is queued.
Parameters
| Name | Description |
|---|---|
| NewTasks | subsequents to add |
| CurrentThreadIfKnown | if the current thread is known, provide it here. Otherwise it will be determined via TLS if any task ends up being queued. |
| bInternal | used to distinguish between "internal" graph events that have an accompanying task, and "standalone" graph events created explicitly by FGraphEvent::CreateGraphEvent() |