lock_options.hpp 701 B

12345678910111213141516171819202122232425262728293031
  1. // Distributed under the Boost Software License, Version 1.0. (See
  2. // accompanying file LICENSE_1_0.txt or copy at
  3. // http://www.boost.org/LICENSE_1_0.txt)
  4. // (C) Copyright 2007 Anthony Williams
  5. // (C) Copyright 2011-2012 Vicente J. Botet Escriba
  6. #ifndef BOOST_THREAD_LOCK_OPTIONS_HPP
  7. #define BOOST_THREAD_LOCK_OPTIONS_HPP
  8. #include <boost/config/abi_prefix.hpp>
  9. namespace boost
  10. {
  11. struct defer_lock_t
  12. {
  13. };
  14. struct try_to_lock_t
  15. {
  16. };
  17. struct adopt_lock_t
  18. {
  19. };
  20. BOOST_CONSTEXPR_OR_CONST defer_lock_t defer_lock = {};
  21. BOOST_CONSTEXPR_OR_CONST try_to_lock_t try_to_lock = {};
  22. BOOST_CONSTEXPR_OR_CONST adopt_lock_t adopt_lock = {};
  23. }
  24. #include <boost/config/abi_suffix.hpp>
  25. #endif