adding flush to mapped_region

This commit is contained in:
Daniel Larimer 2013-01-27 10:24:11 -05:00
parent e5796f06bd
commit 5c21d1d45c
2 changed files with 2 additions and 0 deletions

View file

@ -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:

View file

@ -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(); }
}