UCommon
|
The shared mempager uses a mutex to protect key access methods. More...
#include <misc.h>
Inherits ost::MemPager, and ost::Mutex.
Protected Member Functions | |
void * | alloc (size_t size) |
Get the last memory page after locking. More... | |
void * | first (size_t size) |
void | purge (void) |
Purge the memory pool while locked. | |
SharedMemPager (size_t pagesize=4096) | |
Create a mempager mutex pool. More... | |
The shared mempager uses a mutex to protect key access methods.
This class is used when a mempager will be shared by multiple threads.
|
protected |
Create a mempager mutex pool.
pagesize | page size for allocation. |
name | a name for the pool. |
|
protected |
Get the last memory page after locking.
size | of request. |