IsInGarbageCollectorThread

Whether we are running on the Garbage Collector Thread

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UObjectGlobals.h

Include

#include "UObject/UObjectGlobals.h"

Source

/Engine/Source/Runtime/CoreUObject/Private/UObject/GarbageCollection.cpp

Syntax

bool IsInGarbageCollectorThread()

Remarks

Whether we are running on the Garbage Collector Thread

Returns true if this function is called from the async destruction thread. It will also return true if we're running single-threaded and this function is called on the game thread

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss