Ark Server API (ASA) - Wiki
|
#include <CoreGlobals.h>
Public Member Functions | |
FTaskTagScope (ETaskTag InTag=ETaskTag::ENone) | |
~FTaskTagScope () | |
Static Public Member Functions | |
static void | SetTagNone () |
static void | SetTagStaticInit () |
static ETaskTag | SwapTag (ETaskTag Tag) |
static ETaskTag | GetCurrentTag () |
static bool | IsCurrentTag (ETaskTag InTag) |
static bool | IsRunningDuringStaticInit () |
Protected Member Functions | |
FTaskTagScope (bool InTagOnlyIfNone, ETaskTag InTag) | |
Static Private Member Functions | |
static int32 | GetStaticThreadId () |
Private Attributes | |
ETaskTag | ParentTag |
ETaskTag | Tag |
bool | TagOnlyIfNone |
Static Private Attributes | |
static thread_local ETaskTag | ActiveTaskTag |
Friends | |
class | FRunnableThread |
class | FRenderingThread |
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.
CtorSignature | InTag the Tag to use |
Definition at line 605 of file CoreGlobals.h.
|
inline |
FTaskTagScope::~FTaskTagScope | ( | ) |
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.
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.
Definition at line 608 of file CoreGlobals.h.
|
friend |
Definition at line 607 of file CoreGlobals.h.
|
staticprivate |
Definition at line 609 of file CoreGlobals.h.
|
private |
Definition at line 611 of file CoreGlobals.h.
|
private |
Definition at line 612 of file CoreGlobals.h.
|
private |
Definition at line 613 of file CoreGlobals.h.