MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / IsInMainThread

Function IsInMainThread

Source/Engine/Threading/ThreadPool.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18#include "Engine/Scripting/Internal/InternalCalls.h"
19
20FLAXENGINE_API bool IsInMainThread()
21{
22 return Globals::MainThreadID == Platform::GetCurrentThreadID();
23}
24
25String ThreadPoolTask::ToString() const
26{

Callers 15

WaitForAssetMethod · 0.85
DownloadDataMethod · 0.85
UploadMipMapAsyncMethod · 0.85
DownloadDataMethod · 0.85
~GPUTasksContextMethod · 0.85
ExitMethod · 0.85
InitMethod · 0.85
FatalMethod · 0.85
OnInitMethod · 0.85
OnInitMethod · 0.85
MapMethod · 0.85
UnmapMethod · 0.85

Calls 1

GetCurrentThreadIDFunction · 0.50

Tested by

no test coverage detected