1
0
mirror of https://github.com/luanti-org/luanti.git synced 2026-01-01 02:45:19 +01:00

Use std::mutex for the env lock (instead of ordered_mutex) (#16739)

This is helpful with multiple emerge threads.
This commit is contained in:
lhofhansl
2025-12-31 12:18:13 +01:00
committed by GitHub
parent 975699a950
commit ed62451ad3

View File

@@ -474,7 +474,7 @@ public:
EnvAutoLock(Server *server): m_lock(server->m_env_mutex) {}
private:
std::lock_guard<ordered_mutex> m_lock;
std::lock_guard<std::mutex> m_lock;
};
protected:
@@ -662,7 +662,7 @@ private:
*/
// Environment mutex (envlock)
ordered_mutex m_env_mutex;
std::mutex m_env_mutex;
// World directory
std::string m_path_world;