_asset locking

This commit is contained in:
2023-05-21 20:29:15 +03:00
parent 279badf0f9
commit e21c06e595

View File

@@ -477,7 +477,7 @@ const String& BinaryAsset::GetPath() const
uint64 BinaryAsset::GetMemoryUsage() const
{
Locker.Lock();
//ScopeLock lock(Locker);
uint64 result = Asset::GetMemoryUsage();
result += sizeof(BinaryAsset) - sizeof(Asset);
result += _dependantAssets.Capacity() * sizeof(BinaryAsset*);
@@ -487,7 +487,6 @@ uint64 BinaryAsset::GetMemoryUsage() const
if (chunk != nullptr && chunk->IsLoaded())
result += chunk->Size();
}
Locker.Unlock();
return result;
}