ost::SharedMemPager(3) | Library Functions Manual | ost::SharedMemPager(3) |
NAME¶
ost::SharedMemPager - The shared mempager uses a mutex to protect key access methods.SYNOPSIS¶
#include <misc.h> Inherits ost::MemPager, and ost::Mutex.Protected Member Functions¶
SharedMemPager (size_t pagesize=4096, const char *name=NULL)
Additional Inherited Members¶
Detailed Description¶
The shared mempager uses a mutex to protect key access methods.David Sugar dyfet@ostel.com mutex protected
memory pager.
Constructor & Destructor Documentation¶
ost::SharedMemPager::SharedMemPager (size_tpagesize = 4096, const char *name = NULL) [protected]¶
Create a mempager mutex pool. Parameters:pagesize page size for allocation.
name a name for the pool.
Member Function Documentation¶
void* ost::SharedMemPager::alloc (size_tsize) [protected], [virtual]¶
Get the last memory page after locking. Returns:allocated memory space.
Parameters:
size of request.
void* ost::SharedMemPager::first (size_tsize) [protected], [virtual]¶
Get the first memory page after locking. Returns:allocated memory space.
Parameters:
size of request.
void ost::SharedMemPager::purge (void) [protected]¶
Purge the memory pool while locked. Reimplemented from ost::MemPager.Author¶
Generated automatically by Doxygen for GNU CommonC++ from the source code.Sat Jun 23 2012 | GNU CommonC++ |