]> git.lizzy.rs Git - minetest.git/blobdiff - src/settings.h
Add minetest.register_lbm() to run code on block load only
[minetest.git] / src / settings.h
index d41f134cd26c2246061b3e7534c9924290097e53..80d41fd790f18b5c66a387a577c5ea0e2702f04f 100644 (file)
@@ -22,7 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 #include "irrlichttypes_bloated.h"
 #include "util/string.h"
-#include "jthread/jmutex.h"
+#include "threading/mutex.h"
 #include <string>
 #include <map>
 #include <list>
@@ -225,8 +225,8 @@ class Settings {
 
        std::map<std::string, std::vector<std::pair<setting_changed_callback,void*> > > m_callbacks;
 
-       mutable JMutex m_callbackMutex;
-       mutable JMutex m_mutex; // All methods that access m_settings/m_defaults directly should lock this.
+       mutable Mutex m_callbackMutex;
+       mutable Mutex m_mutex; // All methods that access m_settings/m_defaults directly should lock this.
 
 };