|
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. | |
| void * | first (size_t size) |
| void | purge (void) |
| Purge the memory pool while locked. | |
| SharedMemPager (size_t pagesize=4096) | |
| Create a mempager mutex pool. | |
The shared mempager uses a mutex to protect key access methods.
This class is used when a mempager will be shared by multiple threads.
| ost::SharedMemPager::SharedMemPager | ( | size_t | pagesize = 4096 | ) | [protected] |
Create a mempager mutex pool.
| pagesize | page size for allocation. |
| name | a name for the pool. |
| void* ost::SharedMemPager::alloc | ( | size_t | size | ) | [protected] |
Get the last memory page after locking.
| size | of request. |
1.7.6.1