Merge remote-tracking branch 'origin/master' into 1.12
# Conflicts: # Source/Engine/Content/Storage/FlaxStorage.cpp # global.json
This commit is contained in:
@@ -286,14 +286,14 @@ FlaxStorage::LockData FlaxStorage::LockSafe()
|
||||
|
||||
uint32 FlaxStorage::GetRefCount() const
|
||||
{
|
||||
return (uint32)Platform::AtomicRead((intptr*)&_refCount);
|
||||
return (uint32)Platform::AtomicRead(&_refCount);
|
||||
}
|
||||
|
||||
bool FlaxStorage::ShouldDispose() const
|
||||
{
|
||||
return Platform::AtomicRead((intptr*)&_refCount) == 0 &&
|
||||
Platform::AtomicRead((intptr*)&_chunksLock) == 0 &&
|
||||
Platform::GetTimeSeconds() - _lastRefLostTime >= 0.5; // TTL in seconds
|
||||
return Platform::AtomicRead(&_refCount) == 0 &&
|
||||
Platform::AtomicRead(&_chunksLock) == 0 &&
|
||||
Platform::GetTimeSeconds() - _lastRefLostTime >= ContentStorageManager::UnusedStorageLifetime.GetTotalSeconds();
|
||||
}
|
||||
|
||||
uint32 FlaxStorage::GetMemoryUsage() const
|
||||
|
||||
Reference in New Issue
Block a user