|
|
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 (const std::string &filename, unsigned long long len, bool zero) |
| |
|
void | flush (bool sync) |
| |
|
virtual Flushable * | prepareFlush () |
| | 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 |
| |
|
HANDLE | getFd () const |
| |
| void * | createReadOnlyMap () |
| | create a new view with the specified properties. More...
|
| |
|
void * | createPrivateMap () |
| |
|
virtual bool | isMongoMMF () |
| |
|
string | filename () const |
| |
|
void | setFilename (const std::string &fn) |
| |
| template<class F > |
| void | forEach (F p) |
| | p is called from within a mutex that MongoFile uses. More...
|
| |
|
|
static void | makeWritable (void *, unsigned len) |
| | make the private map range writable (necessary for our windows implementation)
|
| |
| template<class F > |
| static void | forEach (F fun) |
| |
| static set< MongoFile * > & | getAllFiles () |
| | note: you need to be in mmmutex when using this. More...
|
| |
|
static int | flushAll (bool sync) |
| |
|
static long long | totalMappedLength () |
| |
|
static void | closeAllFiles (stringstream &message) |
| |
|
|
virtual void * | viewForFlushing () |
| |
|
void * | remapPrivateView (void *oldPrivateAddr) |
| | close the current private view and open a new replacement
|
| |
|
void | created () |
| |
|
void | destroyed () |
| |
|
| enum | Options { SEQUENTIAL = 1,
READONLY = 2
} |
| |
|
static void(* | notifyPreFlush )() = nullFunc |
| |
|
static void(* | notifyPostFlush )() = nullFunc |
| |
| void * mongo::MemoryMappedFile::createReadOnlyMap |
( |
| ) |
|
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
-
| options | see MongoFile::Options |
The documentation for this class was generated from the following files:
- mmap.h
- mmap.cpp
- mmap_mm.cpp
- mmap_posix.cpp
- mmap_win.cpp