Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
550 B · 34 lines
C
at master
12345678910111213141516171819202122232425262728293031323334#pragma once
#include "ArrayWithLength.h"
class IntCache{private:
class ThreadStorage { public: int maxSize;
vector<intArray> tcache; vector<intArray> tallocated; vector<intArray> cache; vector<intArray> allocated; vector<intArray> toosmall; // 4J added ~ThreadStorage(); }; static DWORD tlsIdx;
static const int TINY_CUTOFF = 256;
public: static intArray allocate(int size); static void releaseAll();
static void CreateNewThreadStorage(); static void ReleaseThreadStorage(); static void Reset(); // 4J added};