mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-03 03:24:29 +00:00
Restore recursive locking for mutexes converted from CRITICAL_SECTION
CRITICAL_SECTION is reentrant; std::mutex is not. This caused deadlocks during world generation, post-processing, and saving.
This commit is contained in:
@@ -31,7 +31,7 @@ private:
|
||||
#endif
|
||||
|
||||
// 4J - added for multithreaded support
|
||||
std::mutex m_csLoadCreate;
|
||||
std::recursive_mutex m_csLoadCreate;
|
||||
// 4J - size of cache is defined by size of one side - must be even
|
||||
int XZSIZE;
|
||||
int XZOFFSET;
|
||||
|
||||
Reference in New Issue
Block a user