Add threadlock and universal fs functions

This commit is contained in:
murdle
2026-03-01 23:19:08 +02:00
parent 5b984ad854
commit f0632c2364
92 changed files with 618 additions and 281 deletions

View File

@@ -22,15 +22,15 @@
#ifdef SHARING_ENABLED
CRITICAL_SECTION LevelChunk::m_csSharing;
ThreadLock LevelChunk::m_csSharing;
#endif
#ifdef _ENTITIES_RW_SECTION
// AP - use a RW critical section so we can have multiple threads reading the same data to avoid a clash
CRITICAL_RW_SECTION LevelChunk::m_csEntities;
#else
CRITICAL_SECTION LevelChunk::m_csEntities;
ThreadLock LevelChunk::m_csEntities;
#endif
CRITICAL_SECTION LevelChunk::m_csTileEntities;
ThreadLock LevelChunk::m_csTileEntities;
bool LevelChunk::touchedSky = false;
void LevelChunk::staticCtor()