<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta name="robots" content="noindex"> <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>SharedMemPager class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body bgcolor="#ffffff"> <!-- Generated by Doxygen 1.2.5 on Thu Oct 4 15:33:01 2001 --> <center> <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="classes.html">Alphabetical List</a> <a class="qindex" href="annotated.html">Compound List</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Compound Members</a> <a class="qindex" href="globals.html">File Members</a> </center> <hr><h1>SharedMemPager Class Reference</h1>The shared mempager uses a mutex to protect key access methods. mutex protected memory pager. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="misc_h-source.html">misc.h</a>></code> <p> <p>Inheritance diagram for SharedMemPager: <p><center><img src="class_sharedmempager.gif" usemap="#SharedMemPager_map" border="0"></center> <map name="SharedMemPager_map"> <area href="class_mempager.html" alt="MemPager" shape="rect" coords="0,0,114,24"> <area href="class_mutex.html" alt="Mutex" shape="rect" coords="124,0,238,24"> </map> <a href="class_sharedmempager-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td colspan=2><br><h2>Protected Methods</h2></td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="class_sharedmempager.html#b0">SharedMemPager</a> (int pg=4096)</td></tr> <tr><td> </td><td><font size=-1><em>Create a mempager mutex pool.</em> <a href="#b0">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="class_sharedmempager.html#b1">purge</a> (void)</td></tr> <tr><td> </td><td><font size=-1><em>Purge the memory pool while locked.</em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void* </td><td valign=bottom><a class="el" href="class_sharedmempager.html#b2">first</a> (size_t size)</td></tr> <tr><td> </td><td><font size=-1><em>Get the first memory page after locking.</em> <a href="#b2">More...</a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>void* </td><td valign=bottom><a class="el" href="class_sharedmempager.html#b3">alloc</a> (size_t size)</td></tr> <tr><td> </td><td><font size=-1><em>Get the last memory page after locking.</em> <a href="#b3">More...</a><em></em></font><br><br></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> The shared mempager uses a mutex to protect key access methods. mutex protected memory pager. <p> This class is used when a mempager will be shared by multiple threads. <p> <dl compact><dt> <b>Author(s): </b><dd> David Sugar <<a href="mailto:dyfet@ostel.com">dyfet@ostel.com</a>> </dl> <p> <hr><h2>Constructor & Destructor Documentation</h2> <a name="b0" doxytag="SharedMemPager::SharedMemPager"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> SharedMemPager::SharedMemPager ( </b></td> <td valign="bottom"><b> int <em>pg</em> = 4096 )<code> [protected]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Create a mempager mutex pool. <p> <dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>pagesize</em> </td><td> for allocation. </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="b3" doxytag="SharedMemPager::alloc"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void * SharedMemPager::alloc ( </b></td> <td valign="bottom"><b> size_t <em>size</em> )<code> [protected, virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Get the last memory page after locking. <p> <dl compact><dt> <b>Returns: </b><dd> allocated memory space. </dl><dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>size</em> </td><td> of request. </td></tr> </table> </dl> <p> Reimplemented from <a class="el" href="class_mempager.html#b1">MemPager</a>. </td> </tr> </table> <a name="b2" doxytag="SharedMemPager::first"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void * SharedMemPager::first ( </b></td> <td valign="bottom"><b> size_t <em>size</em> )<code> [protected, virtual]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Get the first memory page after locking. <p> <dl compact><dt> <b>Returns: </b><dd> allocated memory space. </dl><dl compact><dt> <b>Parameters: </b><dd> <table border=0 cellspacing=2 cellpadding=0> <tr><td valign=top><em>size</em> </td><td> of request. </td></tr> </table> </dl> <p> Reimplemented from <a class="el" href="class_mempager.html#b0">MemPager</a>. </td> </tr> </table> <a name="b1" doxytag="SharedMemPager::purge"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td nowrap valign="top"><b> void SharedMemPager::purge ( </b></td> <td valign="bottom"><b> void )<code> [protected]</code> </b></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Purge the memory pool while locked. <p> <p> Reimplemented from <a class="el" href="class_mempager.html#b5">MemPager</a>. </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="misc_h-source.html">misc.h</a></ul> <hr><address><small>Generated at Thu Oct 4 15:33:01 2001 for CommonC++ by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.gif" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.5 written by <a href="mailto:dimitri@stack.nl">Dimitri van Heesch</a>, © 1997-2001</small></address> </body> </html>