29 #ifndef MEMORY_POOL_DYNAMIC_STATIC_H 30 #define MEMORY_POOL_DYNAMIC_STATIC_H 32 #include "os/memory_pool_dynamic.h" 34 #include "os/thread_safe.h" 53 Chunk() { mem=NULL; lock=0; check=0; }
56 Chunk chunk[MAX_CHUNKS];
62 Chunk *get_chunk(ID p_id);
63 const Chunk *get_chunk(ID p_id)
const;
66 virtual ID alloc(
size_t p_amount,
const char* p_description);
67 virtual void free(ID p_id);
68 virtual Error realloc(ID p_id,
size_t p_amount);
69 virtual bool is_valid(ID p_id);
70 virtual size_t get_size(ID p_id)
const;
71 virtual const char* get_description(ID p_id)
const;
73 virtual bool is_locked(ID p_id)
const;
74 virtual Error lock(ID p_id);
75 virtual void *
get(ID p_ID);
76 virtual Error unlock(ID p_id);
78 virtual size_t get_available_mem()
const;
79 virtual size_t get_total_usage()
const;
Definition: memory_pool_dynamic_static.h:36
Definition: memory_pool_dynamic.h:35