for durability support we want to be able to map pointers to specific DurableMappedFile objects.
More...
#include <durable_mapped_file.h>
for durability support we want to be able to map pointers to specific DurableMappedFile objects.
◆ PointerToDurableMappedFile()
mongo::PointerToDurableMappedFile::PointerToDurableMappedFile |
( |
| ) |
|
◆ _mutex()
stdx::mutex& mongo::PointerToDurableMappedFile::_mutex |
( |
| ) |
|
|
inline |
for doing many finds in a row with one lock operation
◆ add_inlock()
register view.
not-threadsafe, caller must hold _mutex()
threadsafe
◆ clearWritableBits()
void mongo::PointerToDurableMappedFile::clearWritableBits |
( |
void * |
privateView, |
|
|
size_t |
len |
|
) |
| |
◆ clearWritableBits_inlock()
void mongo::PointerToDurableMappedFile::clearWritableBits_inlock |
( |
void * |
privateView, |
|
|
size_t |
len |
|
) |
| |
|
private |
◆ find()
find associated MMF object for a given pointer.
threadsafe
- Parameters
-
ofs | out returns offset into the view of the pointer, if found. |
- Returns
- the DurableMappedFile to which this pointer belongs. null if not found.
◆ find_inlock()
not-threadsafe, caller must hold _mutex()
underscore version of find is for when you are already locked
- Parameters
-
ofs | out return our offset in the view |
- Returns
- the DurableMappedFile to which this pointer belongs
◆ makeWritable()
void mongo::PointerToDurableMappedFile::makeWritable |
( |
void * |
_p, |
|
|
unsigned |
len |
|
) |
| |
|
inline |
make the private map range writable (necessary for our windows implementation)
◆ MONGO_DISALLOW_COPYING()
◆ numberOfViews_inlock()
unsigned mongo::PointerToDurableMappedFile::numberOfViews_inlock |
( |
| ) |
const |
|
inline |
not-threadsafe, caller must hold _mutex()
◆ remove()
void mongo::PointerToDurableMappedFile::remove |
( |
void * |
view, |
|
|
size_t |
len |
|
) |
| |
de-register view.
threadsafe
◆ _m
stdx::mutex mongo::PointerToDurableMappedFile::_m |
|
private |
◆ _views
The documentation for this class was generated from the following files: