mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-18 21:58:09 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -2,33 +2,29 @@
|
||||
|
||||
#include "ArrayWithLength.h"
|
||||
|
||||
|
||||
class IntCache
|
||||
{
|
||||
class IntCache {
|
||||
private:
|
||||
class ThreadStorage {
|
||||
public:
|
||||
int maxSize;
|
||||
|
||||
class ThreadStorage
|
||||
{
|
||||
public:
|
||||
int maxSize;
|
||||
std::vector<intArray> tcache;
|
||||
std::vector<intArray> tallocated;
|
||||
|
||||
std::vector<intArray> tcache;
|
||||
std::vector<intArray> tallocated;
|
||||
|
||||
std::vector<intArray> cache;
|
||||
std::vector<intArray> allocated;
|
||||
std::vector<intArray> toosmall; // 4J added
|
||||
~ThreadStorage();
|
||||
};
|
||||
static unsigned int tlsIdx;
|
||||
std::vector<intArray> cache;
|
||||
std::vector<intArray> allocated;
|
||||
std::vector<intArray> toosmall; // 4J added
|
||||
~ThreadStorage();
|
||||
};
|
||||
static unsigned int tlsIdx;
|
||||
|
||||
static const int TINY_CUTOFF = 256;
|
||||
static const int TINY_CUTOFF = 256;
|
||||
|
||||
public:
|
||||
static intArray allocate(int size);
|
||||
static void releaseAll();
|
||||
static intArray allocate(int size);
|
||||
static void releaseAll();
|
||||
|
||||
static void CreateNewThreadStorage();
|
||||
static void ReleaseThreadStorage();
|
||||
static void Reset(); // 4J added
|
||||
static void CreateNewThreadStorage();
|
||||
static void ReleaseThreadStorage();
|
||||
static void Reset(); // 4J added
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user