adding flush to mapped_region
This commit is contained in:
parent
e5796f06bd
commit
5c21d1d45c
2 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ namespace fc {
|
|||
mapped_region( const file_mapping& fm, mode_t m, size_t start, size_t size );
|
||||
mapped_region( const file_mapping& fm, mode_t m );
|
||||
~mapped_region();
|
||||
void flush();
|
||||
void* get_address()const;
|
||||
size_t get_size()const;
|
||||
private:
|
||||
|
|
|
|||
|
|
@ -16,5 +16,6 @@ namespace fc {
|
|||
:my( *fm.my, m == read_only ? boost::interprocess::read_only : boost::interprocess::read_write) { }
|
||||
mapped_region::~mapped_region(){}
|
||||
void* mapped_region::get_address()const { return my->get_address(); }
|
||||
void mapped_region::flush(){ my->flush(); }
|
||||
size_t mapped_region::get_size()const { return my->get_size(); }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue