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

Method KillEmAll

Source/Engine/Threading/ThreadRegistry.cpp:36–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void ThreadRegistry::KillEmAll()
37{
38 Locker.Lock();
39 for (auto i = Registry.Begin(); i.IsNotEnd(); ++i)
40 {
41 i->Value->Kill(false);
42 }
43 Locker.Unlock();
44
45 // Now album Kill'Em All from Metallica...
46}
47
48void ThreadRegistry::Add(Thread* thread)
49{

Callers

nothing calls this directly

Calls 5

LockMethod · 0.80
KillMethod · 0.80
UnlockMethod · 0.80
BeginMethod · 0.45
IsNotEndMethod · 0.45

Tested by

no test coverage detected