Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/FlaxEngine/FlaxEngine
/ Enqueue
Method
Enqueue
Source/Engine/Threading/MainThreadTask.cpp:41–49 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
39
}
40
41
void MainThreadTask::Enqueue()
42
{
43
Locker.Lock();
44
if (InitialDelay <= ZeroTolerance)
45
Queue.Add(this);
46
else
47
Waiting.Add(this);
48
Locker.Unlock();
49
}
50
51
bool MainThreadActionTask::Run()
52
{
Callers
nothing calls this directly
Calls
3
Lock
Method · 0.80
Unlock
Method · 0.80
Add
Method · 0.45
Tested by
no test coverage detected