mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
src/util/numeric.{cpp,h}: Fix FacePositionCache data race
This commit is contained in:
parent
060e56b24c
commit
abe6c072d6
2 changed files with 6 additions and 0 deletions
|
@ -24,6 +24,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "../irr_v2d.h"
|
||||
#include "../irr_v3d.h"
|
||||
#include "../irr_aabb3d.h"
|
||||
#include "../jthread/jmutex.h"
|
||||
#include <list>
|
||||
#include <map>
|
||||
#include <vector>
|
||||
|
@ -41,6 +42,7 @@ public:
|
|||
private:
|
||||
static void generateFacePosition(u16 d);
|
||||
static std::map<u16, std::vector<v3s16> > m_cache;
|
||||
static JMutex m_cache_mutex;
|
||||
};
|
||||
|
||||
class IndentationRaiser
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue