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

Method Dispose

Source/Engine/Core/ObjectsRemovalService.cpp:137–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137void ObjectsRemoval::Dispose()
138{
139 // Collect new objects
140 ObjectsRemovalService::Flush();
141
142 // Delete all remaining objects
143 {
144 PoolLocker.Lock();
145 for (auto i = Pool.Begin(); i.IsNotEnd(); ++i)
146 {
147 Object* obj = i->Key;
148 Pool.Remove(i);
149 obj->OnDeleteObject();
150 }
151 Pool.Clear();
152 PoolLocker.Unlock();
153 }
154}
155
156Object::~Object()
157{

Callers

nothing calls this directly

Calls 8

LockMethod · 0.80
UnlockMethod · 0.80
FlushFunction · 0.70
BeginMethod · 0.45
IsNotEndMethod · 0.45
RemoveMethod · 0.45
OnDeleteObjectMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected