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