ucommon
|
A mempager source of reusable objects. More...
#include <vector.h>
Protected Member Functions | |
bool | avail (void) |
ReusableObject * | get (void) |
ReusableObject * | get (timeout_t timeout) |
PagerReuse (mempager *pager, size_t objsize, unsigned count) | |
ReusableObject * | request (void) |
![]() | |
virtual void * | _alloc (size_t size) |
MemoryRedirect (MemoryProtocol *protocol) | |
![]() | |
void * | alloc (size_t size) |
Convenience function. | |
char * | dup (const char *string) |
Duplicate NULL terminated string into allocated memory. | |
void * | dup (void *memory, size_t size) |
Duplicate existing memory block into allocated memory. | |
void * | zalloc (size_t size) |
Allocate memory from the pager heap. | |
Additional Inherited Members |
A mempager source of reusable objects.
This is used by the reuse_pager template to allocate new objects either from a memory pager used as a private heap, or from previously allocated objects that have been returned for reuse.