multi_segment_services.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // (C) Copyright Ion Gaztanaga 2005-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. #ifndef BOOST_INTERPROCESS_MULTI_SEGMENT_SERVICES_HPP
  11. #define BOOST_INTERPROCESS_MULTI_SEGMENT_SERVICES_HPP
  12. #if (defined _MSC_VER) && (_MSC_VER >= 1200)
  13. # pragma once
  14. #endif
  15. #include <boost/interprocess/detail/config_begin.hpp>
  16. #include <boost/interprocess/detail/workaround.hpp>
  17. /*!\file
  18. Describes a named shared memory allocation user class.
  19. */
  20. namespace boost {
  21. namespace interprocess {
  22. class multi_segment_services
  23. {
  24. public:
  25. virtual std::pair<void *, std::size_t> create_new_segment(std::size_t mem) = 0;
  26. virtual bool update_segments () = 0;
  27. virtual ~multi_segment_services() = 0;
  28. };
  29. inline multi_segment_services::~multi_segment_services()
  30. {}
  31. }} //namespace boost { namespace interprocess {
  32. #include <boost/interprocess/detail/config_end.hpp>
  33. #endif //#ifdef BOOST_INTERPROCESS_MULTI_SEGMENT_SERVICES_HPP