ost::SharedMemPager(3) | Library Functions Manual | ost::SharedMemPager(3) |
ost::SharedMemPager - The shared mempager uses a mutex to protect key access methods.
#include <misc.h>
Inherits ost::MemPager, and ost::Mutex.
SharedMemPager (size_t pagesize=4096, const char
*name=NULL)
Create a mempager mutex pool. void purge (void)
Purge the memory pool while locked. void * first (size_t size)
Get the first memory page after locking. void * alloc (size_t size)
Get the last memory page after locking.
The shared mempager uses a mutex to protect key access methods.
This class is used when a mempager will be shared by multiple threads.
Author:
Create a mempager mutex pool.
Parameters:
Get the last memory page after locking.
Returns:
Parameters:
Reimplemented from ost::MemPager.
Get the first memory page after locking.
Returns:
Parameters:
Reimplemented from ost::MemPager.
Purge the memory pool while locked.
Generated automatically by Doxygen for GNU CommonC++ from the source code.
Wed Oct 31 2018 | GNU CommonC++ |