annotate DEPENDENCIES/generic/include/boost/interprocess/sync/lock_options.hpp @ 133:4acb5d8d80b6 tip

Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author Chris Cannam
date Tue, 30 Jul 2019 12:25:44 +0100
parents c530137014c0
children
rev   line source
Chris@16 1 //////////////////////////////////////////////////////////////////////////////
Chris@16 2 //
Chris@16 3 // (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost
Chris@16 4 // Software License, Version 1.0. (See accompanying file
Chris@16 5 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
Chris@16 6 //
Chris@16 7 // See http://www.boost.org/libs/interprocess for documentation.
Chris@16 8 //
Chris@16 9 //////////////////////////////////////////////////////////////////////////////
Chris@16 10
Chris@16 11 #ifndef BOOST_INTERPROCESS_LOCK_OPTIONS_HPP
Chris@16 12 #define BOOST_INTERPROCESS_LOCK_OPTIONS_HPP
Chris@16 13
Chris@101 14 #ifndef BOOST_CONFIG_HPP
Chris@101 15 # include <boost/config.hpp>
Chris@101 16 #endif
Chris@101 17 #
Chris@101 18 #if defined(BOOST_HAS_PRAGMA_ONCE)
Chris@16 19 # pragma once
Chris@16 20 #endif
Chris@16 21
Chris@16 22 #include <boost/interprocess/detail/config_begin.hpp>
Chris@16 23 #include <boost/interprocess/detail/workaround.hpp>
Chris@16 24
Chris@16 25 //!\file
Chris@16 26 //!Describes the lock options with associated with interprocess_mutex lock constructors.
Chris@16 27
Chris@16 28 namespace boost {
Chris@16 29
Chris@101 30 #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
Chris@101 31
Chris@16 32 namespace posix_time
Chris@16 33 { class ptime; }
Chris@16 34
Chris@101 35 #endif //#if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)
Chris@101 36
Chris@16 37 namespace interprocess {
Chris@16 38
Chris@16 39 //!Type to indicate to a mutex lock constructor that must not lock the mutex.
Chris@16 40 struct defer_lock_type{};
Chris@16 41 //!Type to indicate to a mutex lock constructor that must try to lock the mutex.
Chris@16 42 struct try_to_lock_type {};
Chris@16 43 //!Type to indicate to a mutex lock constructor that the mutex is already locked.
Chris@16 44 struct accept_ownership_type{};
Chris@16 45
Chris@16 46 //!An object indicating that the locking
Chris@16 47 //!must be deferred.
Chris@16 48 static const defer_lock_type defer_lock = defer_lock_type();
Chris@16 49
Chris@16 50 //!An object indicating that a try_lock()
Chris@16 51 //!operation must be executed.
Chris@16 52 static const try_to_lock_type try_to_lock = try_to_lock_type();
Chris@16 53
Chris@16 54 //!An object indicating that the ownership of lockable
Chris@16 55 //!object must be accepted by the new owner.
Chris@16 56 static const accept_ownership_type accept_ownership = accept_ownership_type();
Chris@16 57
Chris@16 58 } // namespace interprocess {
Chris@16 59 } // namespace boost{
Chris@16 60
Chris@16 61 #include <boost/interprocess/detail/config_end.hpp>
Chris@16 62
Chris@16 63 #endif // BOOST_INTERPROCESS_LOCK_OPTIONS_HPP