From e21c06e59575c9940b0717536baa484ebcdd5c19 Mon Sep 17 00:00:00 2001 From: Ari Vuollet Date: Sun, 21 May 2023 20:29:15 +0300 Subject: [PATCH] _asset locking --- Source/Engine/Content/BinaryAsset.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/Engine/Content/BinaryAsset.cpp b/Source/Engine/Content/BinaryAsset.cpp index 692fc9329..b2a53cee1 100644 --- a/Source/Engine/Content/BinaryAsset.cpp +++ b/Source/Engine/Content/BinaryAsset.cpp @@ -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; }