Fixes for 1.41

[SVN r56823]
This commit is contained in:
Ion Gaztañaga
2009-10-14 13:08:04 +00:00
parent 1bdccad422
commit f0471dbf91
128 changed files with 549 additions and 240 deletions

View File

@@ -1,6 +1,6 @@
//////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2006-2007. Distributed under the Boost
// (C) Copyright Ion Gaztanaga 2006-2009. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
@@ -85,4 +85,31 @@ int main()
return 0;
}
//]
/*
#include <vector>
#include <boost/interprocess/managed_windows_shared_memory.hpp>
int main()
{
using namespace boost::interprocess;
typedef boost::interprocess::
managed_windows_shared_memory shared_segment;
std::vector<void *> ptrs;
shared_segment m_segment(create_only, "shmem", 4096*16);
try{
while(1){
//Now I have several allocate_aligned operations:
ptrs.push_back(m_segment.allocate_aligned(128, 128));
}
}
catch(...){
m_segment.deallocate(ptrs.back());
ptrs.pop_back();
ptrs.push_back(m_segment.allocate_aligned(128, 128));
}
return 0;
}
*/
#include <boost/interprocess/detail/config_end.hpp>