14 #ifndef NEVERFREEMEMORY_H 15 #define NEVERFREEMEMORY_H 37 INLINE
static void *alloc(
size_t size);
40 INLINE
static size_t get_total_alloc();
41 INLINE
static size_t get_total_used();
42 INLINE
static size_t get_total_unused();
45 void *ns_alloc(
size_t size);
47 static void make_global_ptr();
52 INLINE Page(
void *start,
size_t size);
53 INLINE
bool operator < (
const Page &other)
const;
54 INLINE
void *alloc(
size_t size);
60 typedef std::set<Page> Pages;
This class is used to allocate bytes of memory from a pool that is never intended to be freed.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
A fake mutex implementation for single-threaded applications that don't need any synchronization cont...