mutex_family.hpp 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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_MUTEX_FAMILY_HPP
  11. #define BOOST_INTERPROCESS_MUTEX_FAMILY_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. #include <boost/interprocess/sync/interprocess_mutex.hpp>
  18. #include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
  19. #include <boost/interprocess/sync/null_mutex.hpp>
  20. //!\file
  21. //!Describes a shared interprocess_mutex family fit algorithm used to allocate objects in shared memory.
  22. namespace boost {
  23. namespace interprocess {
  24. //!Describes interprocess_mutex family to use with Interprocess framework
  25. //!based on boost::interprocess synchronization objects.
  26. struct mutex_family
  27. {
  28. typedef boost::interprocess::interprocess_mutex mutex_type;
  29. typedef boost::interprocess::interprocess_recursive_mutex recursive_mutex_type;
  30. };
  31. //!Describes interprocess_mutex family to use with Interprocess frameworks
  32. //!based on null operation synchronization objects.
  33. struct null_mutex_family
  34. {
  35. typedef boost::interprocess::null_mutex mutex_type;
  36. typedef boost::interprocess::null_mutex recursive_mutex_type;
  37. };
  38. } //namespace interprocess {
  39. } //namespace boost {
  40. #include <boost/interprocess/detail/config_end.hpp>
  41. #endif //#ifndef BOOST_INTERPROCESS_MUTEX_FAMILY_HPP