Merge from trunk for 1.46

[SVN r68072]
This commit is contained in:
Ion Gaztañaga
2011-01-12 22:23:09 +00:00
parent 64db00dc3d
commit ab7e04d7f8
19 changed files with 1031 additions and 255 deletions

View File

@@ -16,15 +16,32 @@
#include <cstddef>
#include <cstdio>
//<-
#include "../test/get_process_id_name.hpp"
//->
using namespace boost::interprocess;
typedef list<int, allocator<int, managed_mapped_file::segment_manager> >
MyList;
int main ()
{
{
//Define file names
//<-
#if 1
std::string file(boost::interprocess::detail::get_temporary_path());
file += "/"; file += test::get_process_id_name();
const char *FileName = file.c_str();
#else
//->
const char *FileName = "file_mapping";
//<-
#endif
//->
const std::size_t FileSize = 1000;
file_mapping::remove(FileName);
try{
std::size_t old_size = 0;
managed_mapped_file::handle_t list_handle;