|
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members
SharedMemPager Class ReferenceThe shared mempager uses a mutex to protect key access methods. mutex protected memory pager.
More...
#include <misc.h>
Inheritance diagram for SharedMemPager:
List of all members.
Protected Methods |
| SharedMemPager (int pg = 4096) |
| Create a mempager mutex pool. More...
|
void | purge (void) |
| Purge the memory pool while locked.
|
void* | first (size_t size) |
| Get the first memory page after locking. More...
|
void* | alloc (size_t size) |
| Get the last memory page after locking. More...
|
Detailed Description
The shared mempager uses a mutex to protect key access methods. mutex protected memory pager.
This class is used when a mempager will be shared by multiple threads.
-
Author(s):
-
David Sugar <dyfet@ostel.com>
Constructor & Destructor Documentation
SharedMemPager::SharedMemPager (
|
int pg = 4096 ) [protected]
|
|
|
Create a mempager mutex pool.
-
Parameters:
-
|
Member Function Documentation
void * SharedMemPager::alloc (
|
size_t size ) [protected, virtual]
|
|
|
Get the last memory page after locking.
-
Returns:
-
allocated memory space.
-
Parameters:
-
Reimplemented from MemPager. |
void * SharedMemPager::first (
|
size_t size ) [protected, virtual]
|
|
|
Get the first memory page after locking.
-
Returns:
-
allocated memory space.
-
Parameters:
-
Reimplemented from MemPager. |
void SharedMemPager::purge (
|
void ) [protected]
|
|
|
Purge the memory pool while locked.
Reimplemented from MemPager. |
The documentation for this class was generated from the following file:
Generated at Fri Mar 23 10:47:56 2001 for CommonC++ by
1.2.1 written by Dimitri van Heesch,
© 1997-2000
|