Imported Upstream version 1.57.0
[platform/upstream/boost.git] / libs / interprocess / test / adaptive_node_pool_test.cpp
1 //////////////////////////////////////////////////////////////////////////////
2 //
3 // (C) Copyright Ion Gaztanaga 2007-2012. Distributed under the Boost
4 // Software License, Version 1.0. (See accompanying file
5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 //
7 // See http://www.boost.org/libs/interprocess for documentation.
8 //
9 //////////////////////////////////////////////////////////////////////////////
10
11 #include <boost/interprocess/detail/config_begin.hpp>
12 #include "node_pool_test.hpp"
13 #include <boost/interprocess/allocators/detail/adaptive_node_pool.hpp>
14 #include <vector>
15
16 using namespace boost::interprocess;
17 typedef managed_shared_memory::segment_manager segment_manager_t;
18
19 int main ()
20 {
21    typedef ipcdetail::private_adaptive_node_pool
22       <segment_manager_t, 4, 64, 64, 5> node_pool_t;
23
24    if(!test::test_all_node_pool<node_pool_t>())
25       return 1;
26
27    return 0;
28 }
29
30 #include <boost/interprocess/detail/config_end.hpp>