Module |
|
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
)
"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.
Parameter |
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. |