MCPcopy 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
41void 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
51bool MainThreadActionTask::Run()
52{

Callers

nothing calls this directly

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
AddMethod · 0.45

Tested by

no test coverage detected