IsInGarbageCollectorThread

Whether we are running on the Garbage Collector Thread

Choose your operating system:

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