#include <mmap.h>
◆ LockMongoFilesShared()
mongo::LockMongoFilesShared::LockMongoFilesShared |
( |
OperationContext * |
opCtx | ) |
|
|
inlineexplicit |
◆ assertAtLeastReadLocked()
static void mongo::LockMongoFilesShared::assertAtLeastReadLocked |
( |
OperationContext * |
opCtx | ) |
|
|
inlinestatic |
◆ assertExclusivelyLocked()
static void mongo::LockMongoFilesShared::assertExclusivelyLocked |
( |
OperationContext * |
opCtx | ) |
|
|
inlinestatic |
◆ getEra()
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().
◆ LockMongoFilesExclusive
◆ era
unsigned mongo::LockMongoFilesShared::era = 99 |
|
staticprivate |
◆ lk
◆ mmmutex
The documentation for this class was generated from the following files:
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/mmap.h
- /home/louis/git/mongodbsource.github.io/src/src/mongo/db/storage/mmap_v1/mmap.cpp