![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <CoreGlobals.h>
Public Member Functions | |
| CORE_API | FTaskTagScope (ETaskTag InTag) |
| CORE_API | ~FTaskTagScope () |
Static Public Member Functions | |
| static void CORE_API | SetTagNone () |
| static void CORE_API | SetTagStaticInit () |
| static ETaskTag CORE_API | SwapTag (ETaskTag Tag) |
| static CORE_API ETaskTag | GetCurrentTag () |
| static CORE_API bool | IsCurrentTag (ETaskTag InTag) |
| static CORE_API bool | IsRunningDuringStaticInit () |
Friends | |
| class | FRunnableThread |
| class | FRenderingThread |
This class can be used to Tag an execution context aka Thead or Job and allows us to later query the state when we are in the callstack It is usually used for the IsInRendering/GamethreadFunctions.
| CtorSignature | InTag the Tag to use |
| FTaskTagScope::FTaskTagScope | ( | ETaskTag | InTag | ) |
| FTaskTagScope::~FTaskTagScope | ( | ) |
|
static |
|
static |
|
static |
Clear the ETaskTag::StaticInit tag so that the Main OS Thread has no active tag. This will allow functions such as IsInGameThread() to function properly when called from the Main Thread.
|
static |
Restore the ETaskTag::StaticInit tag so that the destructors of global (or local static) C++ objects function properly when checking thread state (from functions like IsInGameThread()).
Swap the Tag this is only used when Thread contexts move between different threads.
|
friend |
|
friend |