mongo::PointerToMMF Class Reference

#include <mongommf.h>

List of all members.

Public Member Functions

mutex_mutex ()
void add (void *view, MongoMMF *f)
MongoMMFfind (void *p, size_t &ofs)
MongoMMFfind_inlock (void *p, size_t &ofs)
map< void *, MongoMMF * >::iterator finditer_inlock (void *p)
 PointerToMMF ()
void remove (void *view)

Private Attributes

mutex _m
map< void *, MongoMMF * > _views

Detailed Description

for durability support we want to be able to map pointers to specific MongoMMF objects.

Definition at line 106 of file mongommf.h.


Constructor & Destructor Documentation

mongo::PointerToMMF::PointerToMMF (  ) 

Member Function Documentation

mutex& mongo::PointerToMMF::_mutex (  )  [inline]

for doing many finds in a row with one lock operation

Definition at line 128 of file mongommf.h.

void mongo::PointerToMMF::add ( void *  view,
MongoMMF f 
)

register view. \ threadsafe

MongoMMF* mongo::PointerToMMF::find ( void *  p,
size_t &  ofs 
)

find associated MMF object for a given pointer. threadsafe

Parameters:
ofs out returns offset into the view of the pointer, if found.
Returns:
the MongoMMF to which this pointer belongs. null if not found.
MongoMMF* mongo::PointerToMMF::find_inlock ( void *  p,
size_t &  ofs 
)
map<void*,MongoMMF*>::iterator mongo::PointerToMMF::finditer_inlock ( void *  p  )  [inline]

Definition at line 131 of file mongommf.h.

void mongo::PointerToMMF::remove ( void *  view  ) 

de-register view. threadsafe


Member Data Documentation

Definition at line 134 of file mongommf.h.

map<void*, MongoMMF*> mongo::PointerToMMF::_views [private]

Definition at line 135 of file mongommf.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


mongodb
Author(s): Nate Koenig
autogenerated on Fri Jan 11 12:15:57 2013