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

Method ShouldDispose

Source/Engine/Content/Storage/FlaxStorage.cpp:292–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290}
291
292bool FlaxStorage::ShouldDispose() const
293{
294 return Platform::AtomicRead(&_refCount) == 0 &&
295 Platform::AtomicRead(&_chunksLock) == 0 &&
296 Platform::GetTimeSeconds() - _lastRefLostTime >= ContentStorageManager::UnusedStorageLifetime.GetTotalSeconds();
297}
298
299uint32 FlaxStorage::GetMemoryUsage() const
300{

Callers 1

JobMethod · 0.80

Calls 1

AtomicReadFunction · 0.50

Tested by

no test coverage detected