Reference

ACE_Pagefile_Memory_Pool(3)

Make a memory pool that is based on "anonymous" memory regions allocated from the Win32 page file.

NAME

ACE_Pagefile_Memory_Pool - Make a memory pool that is based on "anonymous" memory regions allocated from the Win32 page file.

SYNOPSIS

#include <ace/ACE_Memory_Pool.h>
class ACE_Pagefile_Memory_Pool
{
  public:
    typedef ACE_Pagefile_Memory_Pool_Options OPTIONS;
    ACE_Pagefile_Memory_Pool (
        LPCTSTR backing_store_name = 0,
        const OPTIONS *options = 0
        );
    void *init_acquire (
        size_t nbytes,
        size_t &rounded_bytes,
        int &first_time
        );
    void *acquire (size_t nbytes, size_t &rounded_bytes);
    int release (void);
    int remap (void *addr);
    size_t round_to_page_size (size_t nbytes);
    size_t round_to_chunk_size (size_t nbytes);
    inline int sync (ssize_t len = -1, int flags = MS_SYNC);
    inline int sync (void *addr, size_t len, int flags = MS_SYNC);
    int protect (
        ssize_t len = -1,
        int prot = PROT_RDWR) { return 0; };
        
    inline int protect (void *addr, size_t len, int prot = PROT_RDWR);
    inline void dump (void) const;
  protected:
    int map (int &firstTime, int appendBytes = 0);
    int unmap (void);
  private:
    Control_Block local_cb_;
    Control_Block *shared_cb_;
    ACE_HANDLE object_handle_;
    size_t page_size_;
    TCHAR backing_store_name_[MAXPATHLEN];
};

Don't need this methods here ...

inline int sync (ssize_t len = -1, int flags = MS_SYNC);

inline int sync (void *addr, size_t len, int flags = MS_SYNC);

int protect (ssize_t len = -1, int prot = PROT_RDWR) { return 0; };

inline int protect (void *addr, size_t len, int prot = PROT_RDWR);

inline void dump (void) const;

AUTHOR

Doug Schmidt and Prashant Jain

LIBRARY

ace