adaptive_node_pool_test.cpp 1015 B

123456789101112131415161718192021222324252627282930
  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. #define BOOST_CONTAINER_ADAPTIVE_NODE_POOL_CHECK_INVARIANTS
  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. using namespace boost::interprocess;
  16. typedef managed_shared_memory::segment_manager segment_manager_t;
  17. int main ()
  18. {
  19. typedef ipcdetail::private_adaptive_node_pool
  20. <segment_manager_t, 4, 64, 64, 5> node_pool_t;
  21. if(!test::test_all_node_pool<node_pool_t>())
  22. return 1;
  23. return 0;
  24. }
  25. #include <boost/interprocess/detail/config_end.hpp>