memory_arena
Loading...
Searching...
No Matches
arena_tlscratch.h
Go to the documentation of this file.
1
32#ifndef ARENA_TLSCRATCH_H
33#define ARENA_TLSCRATCH_H
34
35#include "arena.h"
36#include "arena_tlscratch.h"
37
38#ifdef __cplusplus
39extern "C"
40{
41#endif
42
55
68
80 void set_thread_scratch_arena_size(size_t size);
81
94
95#ifdef __cplusplus
96}
97#endif
98
99#endif // ARENA_TLSCRATCH_H
Core public API for the Arena memory allocator.
Thread-local scratch arena interface for fast temporary allocations.
void destroy_thread_scratch_arena(void)
Destroy the thread-local scratch arena for the calling thread.
t_arena * get_thread_scratch_arena(void)
Get the thread-local scratch arena, resetting it before use.
t_arena * get_thread_scratch_arena_ref(void)
Access the raw thread-local arena pointer without initialization.
void set_thread_scratch_arena_size(size_t size)
Configure the initial size for the thread-local scratch arena.
The main memory arena structure used for fast allocation.