MongoDB  2.0.3
Public Member Functions | Static Public Member Functions | Protected Member Functions
mongo::MemoryMappedFile Class Reference
Inheritance diagram for mongo::MemoryMappedFile:
mongo::MongoFile

List of all members.

Public Member Functions

virtual void close ()
void * map (const char *filename)
void * mapWithOptions (const char *filename, int options)
void * map (const char *filename, unsigned long long &length, int options=0)
void * create (string filename, unsigned long long len, bool zero)
void flush (bool sync)
virtual FlushableprepareFlush ()
 returns a thread safe object that you can call flush on Flushable has to fail nicely if the underlying object gets killed
long shortLength () const
unsigned long long length () const
void * createReadOnlyMap ()
 create a new view with the specified properties.
void * createPrivateMap ()

Static Public Member Functions

static void makeWritable (void *, unsigned len)
 make the private map range writable (necessary for our windows implementation)

Protected Member Functions

virtual void * viewForFlushing ()
virtual void _lock ()
virtual void _unlock ()
void * remapPrivateView (void *oldPrivateAddr)
 close the current private view and open a new replacement

Member Function Documentation

create a new view with the specified properties.

automatically cleaned up upon close/destruction of the MemoryMappedFile object.

void * mongo::MemoryMappedFile::mapWithOptions ( const char *  filename,
int  options 
)
Parameters:
optionssee MongoFile::Options

The documentation for this class was generated from the following files: