4#include "../Foundation/PrimitiveTypes.h"
5#include "../Memory/Memory.h"
8struct SC_MEMORY_EXPORT GlobalSettings;
9struct SC_MEMORY_EXPORT Globals;
10struct MemoryAllocator;
Settings to initialize Globals.
Definition Globals.h:17
size_t ownershipTrackingBytes
Memory to allocate for ownership tracking.
Definition Globals.h:18
Customizable thread-local and global variables for memory handling.
Definition Globals.h:38
static Globals * push(Type type, Globals &globals)
Sets Globals as current, saving previous one.
static Globals & get(Type type)
Obtains current set of Globals.
static Globals * pop(Type type)
Restores Globals previously replaced by a push.
Type
Definition Globals.h:40
@ Global
Shared globals (NOT thread-safe)
Definition Globals.h:41
@ ThreadLocal
Thread-specific globals (separate copy for each thread)
Definition Globals.h:42
static void init(Type type, GlobalSettings settings={})
Initialized Globals for current thread.
Customizable functions to allocate, reallocate and deallocate memory.
Definition Memory.h:42