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

Method Job

Source/Engine/Content/Storage/ContentStorageManager.cpp:253–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251}
252
253void ContentStorageSystem::Job(int32 index)
254{
255 PROFILE_CPU_NAMED("ContentStorage.Job");
256
257 const double time = Platform::GetTimeSeconds();
258 ScopeLock lock(Locker);
259 for (auto i = StorageMap.Begin(); i.IsNotEnd(); ++i)
260 {
261 auto storage = i->Value;
262 if (storage->ShouldDispose())
263 {
264 // Remove from collections
265 if (storage->IsPackage())
266 Packages.Remove((FlaxPackage*)storage);
267 else
268 Files.Remove((FlaxFile*)storage);
269 StorageMap.Remove(i);
270
271 // Delete
272 storage->Dispose();
273 Delete(storage);
274 }
275 else
276 {
277 storage->Tick(time);
278 }
279 }
280}
281
282void ContentStorageSystem::Execute(TaskGraph* graph)
283{

Callers

nothing calls this directly

Calls 8

DeleteFunction · 0.85
ShouldDisposeMethod · 0.80
IsPackageMethod · 0.80
BeginMethod · 0.45
IsNotEndMethod · 0.45
RemoveMethod · 0.45
DisposeMethod · 0.45
TickMethod · 0.45

Tested by

no test coverage detected