15 #ifndef NEVERFREEMEMORY_H
16 #define NEVERFREEMEMORY_H
18 #include "dtoolbase.h"
20 #include "mutexImpl.h"
42 INLINE
static void *alloc(
size_t size);
45 INLINE
static size_t get_total_alloc();
46 INLINE
static size_t get_total_used();
47 INLINE
static size_t get_total_unused();
50 void *ns_alloc(
size_t size);
52 static void make_global_ptr();
57 INLINE Page(
void *start,
size_t size);
58 INLINE
bool operator < (
const Page &other)
const;
59 INLINE
void *alloc(
size_t size);
65 typedef set<Page> Pages;
74 #include "neverFreeMemory.I"
This class is used to allocate bytes of memory from a pool that is never intended to be freed...
A fake mutex implementation for single-threaded applications that don't need any synchronization cont...