mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-25 06:12:25 +00:00
Fixes for 1.41
[SVN r56823]
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user