recursive_mutex.hpp 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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_DETAIL_WINDOWS_RECURSIVE_MUTEX_HPP
  11. #define BOOST_INTERPROCESS_DETAIL_WINDOWS_RECURSIVE_MUTEX_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/windows/mutex.hpp>
  18. namespace boost {
  19. namespace interprocess {
  20. namespace ipcdetail {
  21. //Windows mutex is already recursive
  22. class windows_recursive_mutex
  23. : public windows_mutex
  24. {
  25. windows_recursive_mutex(const windows_recursive_mutex &);
  26. windows_recursive_mutex &operator=(const windows_recursive_mutex &);
  27. public:
  28. windows_recursive_mutex() : windows_mutex() {}
  29. };
  30. } //namespace ipcdetail {
  31. } //namespace interprocess {
  32. } //namespace boost {
  33. #include <boost/interprocess/detail/config_end.hpp>
  34. #endif //BOOST_INTERPROCESS_DETAIL_WINDOWS_RECURSIVE_MUTEX_HPP