ost_SharedMemPager(3)

ost_SharedMemPager3

The shared mempager uses a mutex to protect key access methods.

Usage

#include <misc.h>

Inherits ost::MemPager, and ost::Mutex.

Protected Member Functions

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.

Additional Inherited Members

Detailed Description

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

David Sugar [email protected]

mutex protected memory pager.

Constructor & Destructor Documentation

ost::SharedMemPager::SharedMemPager (size_t pagesize = 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_t size) [protected], [virtual]

Get the last memory page after locking.

Returns

allocated memory space.

Parameters

size of request.

Reimplemented from ost::MemPager.

void* ost::SharedMemPager::first (size_t size) [protected], [virtual]

Get the first memory page after locking.

Returns

allocated memory space.

Parameters

size of request.

Reimplemented from ost::MemPager.

void ost::SharedMemPager::purge (void) [protected]

Purge the memory pool while locked.

Releases

8 releases since Debian 4.0 (Etch); the text changed 7 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9
  7. 10
  8. 11

Author

Generated automatically by Doxygen for GNU CommonC++ from the source code.

From libcommoncpp2-doc 1.8.1-10 in Debian 11 (Bullseye). Parsed by carta from the page's man source.