MongoDB  2.7.0
Static Public Member Functions | Friends | List of all members
mongo::LockMongoFilesShared Class Reference

Static Public Member Functions

static unsigned getEra ()
 era changes anytime memory maps come and go. More...
 
static void assertExclusivelyLocked ()
 
static void assertAtLeastReadLocked ()
 

Friends

class LockMongoFilesExclusive
 

Member Function Documentation

static unsigned mongo::LockMongoFilesShared::getEra ( )
inlinestatic

era changes anytime memory maps come and go.

thus you can use this as a cheap way to check if nothing has changed since the last time you locked. Of course you must be shared locked at the time of this call, otherwise someone could be in progress.

This is used for yielding; see PageFaultException::touch().


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