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

Method Add

Source/Engine/Threading/ThreadRegistry.cpp:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void ThreadRegistry::Add(Thread* thread)
49{
50 PROFILE_MEM(EngineThreading);
51 ASSERT(thread && thread->GetID() != 0);
52 Locker.Lock();
53 ASSERT(!Registry.ContainsKey(thread->GetID()) && !Registry.ContainsValue(thread));
54 Registry.Add(thread->GetID(), thread);
55 Locker.Unlock();
56}
57
58void ThreadRegistry::Remove(Thread* thread)
59{

Callers 15

TestTagsMethod · 0.45
InitBitArrayFunction · 0.45
SetupMethod · 0.45
DispatchMethod · 0.45
RunAllMethod · 0.45
EnqueueMethod · 0.45
GetValuesMethod · 0.45
EnqueueMethod · 0.45
AddDependencyMethod · 0.45
AddSystemMethod · 0.45
ExecuteMethod · 0.45

Calls 5

GetIDMethod · 0.80
LockMethod · 0.80
UnlockMethod · 0.80
ContainsKeyMethod · 0.45
ContainsValueMethod · 0.45

Tested by 3

TestTagsMethod · 0.36
InitBitArrayFunction · 0.36
SetupMethod · 0.36