Navigation
Unreal Engine C++ API Reference > Runtime > Core
Inheritance Hierarchy
- FTaskTagScope
- FOptionalTaskTagScope
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/CoreGlobals.h |
Include | #include "CoreGlobals.h" |
Syntax
class FTaskTagScope
Remarks
This class can be used to Tag an execution context aka Thead or Job and allows us to later querry the state when we are in the callstack It is usually used for the IsInRendering/GamethreadFunctions.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FTaskTagScope
(
ETaskTag InTag |
||
![]() |
FTaskTagScope
(
bool InTagOnlyIfNone, |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
ETaskTag | ||
![]() ![]() |
bool | IsCurrentTag
(
ETaskTag InTag |
|
![]() ![]() |
bool | ||
![]() ![]() |
void | SetTagNone () |
Clear the ETaskTag::StaticInit tag so that the Main OS Thread has no active tag. |
![]() ![]() |
void | 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()). | |
![]() ![]() |
ETaskTag | SwapTag
(
ETaskTag Tag |
Swap the Tag this is only used when Thread contexts move between different threads. |
Constants
Name | Description |
---|---|
ActiveTaskTag |