Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: // (C) Copyright 2007 Anthony Williams Chris@16: // (C) Copyright 2011-2012 Vicente J. Botet Escriba Chris@16: Chris@16: #ifndef BOOST_THREAD_LOCK_OPTIONS_HPP Chris@16: #define BOOST_THREAD_LOCK_OPTIONS_HPP Chris@16: Chris@16: #include Chris@16: Chris@16: namespace boost Chris@16: { Chris@16: struct defer_lock_t Chris@16: { Chris@16: }; Chris@16: struct try_to_lock_t Chris@16: { Chris@16: }; Chris@16: struct adopt_lock_t Chris@16: { Chris@16: }; Chris@16: Chris@16: BOOST_CONSTEXPR_OR_CONST defer_lock_t defer_lock = {}; Chris@16: BOOST_CONSTEXPR_OR_CONST try_to_lock_t try_to_lock = {}; Chris@16: BOOST_CONSTEXPR_OR_CONST adopt_lock_t adopt_lock = {}; Chris@16: Chris@16: } Chris@16: #include Chris@16: Chris@16: #endif