Various code improvements

This commit is contained in:
Wojtek Figat
2024-05-09 18:59:09 +02:00
parent f6aabf2d14
commit 44006dd533
7 changed files with 23 additions and 14 deletions

View File

@@ -1336,6 +1336,8 @@ FileReadStream* FlaxStorage::OpenFile()
bool FlaxStorage::CloseFileHandles()
{
if (Platform::AtomicRead(&_chunksLock) == 0)
return false; // Early out
PROFILE_CPU();
// Note: this is usually called by the content manager when this file is not used or on exit