_asset locking
This commit is contained in:
@@ -477,7 +477,7 @@ const String& BinaryAsset::GetPath() const
|
|||||||
|
|
||||||
uint64 BinaryAsset::GetMemoryUsage() const
|
uint64 BinaryAsset::GetMemoryUsage() const
|
||||||
{
|
{
|
||||||
Locker.Lock();
|
//ScopeLock lock(Locker);
|
||||||
uint64 result = Asset::GetMemoryUsage();
|
uint64 result = Asset::GetMemoryUsage();
|
||||||
result += sizeof(BinaryAsset) - sizeof(Asset);
|
result += sizeof(BinaryAsset) - sizeof(Asset);
|
||||||
result += _dependantAssets.Capacity() * sizeof(BinaryAsset*);
|
result += _dependantAssets.Capacity() * sizeof(BinaryAsset*);
|
||||||
@@ -487,7 +487,6 @@ uint64 BinaryAsset::GetMemoryUsage() const
|
|||||||
if (chunk != nullptr && chunk->IsLoaded())
|
if (chunk != nullptr && chunk->IsLoaded())
|
||||||
result += chunk->Size();
|
result += chunk->Size();
|
||||||
}
|
}
|
||||||
Locker.Unlock();
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user