Tkrzw
|
Structure to make a shared section where a region can be accessed. More...
#include <tkrzw_file_mmap.h>
Public Member Functions | |
~Zone () | |
Destuctor. More... | |
Zone (const Zone &rhs)=delete | |
Copy and assignment are disabled. More... | |
Zone & | operator= (const Zone &rhs)=delete |
int64_t | Offset () const |
Gets the offset of the region to access. More... | |
char * | Pointer () const |
Gets the pointer to the region to access. More... | |
size_t | Size () const |
Gets the size of the region to access. More... | |
Friends | |
class | MemoryMapParallelFile |
Structure to make a shared section where a region can be accessed.
The zone object contains a mutex which is locked by the constructor and unlocked by the destructor. The user can access the region freely while the zone object is alive.
tkrzw::MemoryMapParallelFile::Zone::~Zone | ( | ) |
Destuctor.
|
explicitdelete |
Copy and assignment are disabled.
int64_t tkrzw::MemoryMapParallelFile::Zone::Offset | ( | ) | const |
Gets the offset of the region to access.
char* tkrzw::MemoryMapParallelFile::Zone::Pointer | ( | ) | const |
Gets the pointer to the region to access.
size_t tkrzw::MemoryMapParallelFile::Zone::Size | ( | ) | const |
Gets the size of the region to access.