annotate DEPENDENCIES/generic/include/boost/atomic/detail/lockpool.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@101 1 /*
Chris@101 2 * Distributed under the Boost Software License, Version 1.0.
Chris@101 3 * (See accompanying file LICENSE_1_0.txt or copy at
Chris@101 4 * http://www.boost.org/LICENSE_1_0.txt)
Chris@101 5 *
Chris@101 6 * Copyright (c) 2011 Helge Bahmann
Chris@101 7 * Copyright (c) 2013-2014 Andrey Semashev
Chris@101 8 */
Chris@101 9 /*!
Chris@101 10 * \file atomic/detail/lockpool.hpp
Chris@101 11 *
Chris@101 12 * This header contains declaration of the lockpool used to emulate atomic ops.
Chris@101 13 */
Chris@16 14
Chris@101 15 #ifndef BOOST_ATOMIC_DETAIL_LOCKPOOL_HPP_INCLUDED_
Chris@101 16 #define BOOST_ATOMIC_DETAIL_LOCKPOOL_HPP_INCLUDED_
Chris@16 17
Chris@16 18 #include <boost/atomic/detail/config.hpp>
Chris@16 19 #include <boost/atomic/detail/link.hpp>
Chris@16 20
Chris@16 21 #ifdef BOOST_HAS_PRAGMA_ONCE
Chris@16 22 #pragma once
Chris@16 23 #endif
Chris@16 24
Chris@16 25 namespace boost {
Chris@16 26 namespace atomics {
Chris@16 27 namespace detail {
Chris@16 28
Chris@101 29 struct lockpool
Chris@16 30 {
Chris@101 31 class scoped_lock
Chris@16 32 {
Chris@101 33 void* m_lock;
Chris@16 34
Chris@16 35 public:
Chris@101 36 explicit BOOST_ATOMIC_DECL scoped_lock(const volatile void* addr) BOOST_NOEXCEPT;
Chris@101 37 BOOST_ATOMIC_DECL ~scoped_lock() BOOST_NOEXCEPT;
Chris@16 38
Chris@16 39 BOOST_DELETED_FUNCTION(scoped_lock(scoped_lock const&))
Chris@16 40 BOOST_DELETED_FUNCTION(scoped_lock& operator=(scoped_lock const&))
Chris@16 41 };
Chris@16 42
Chris@101 43 static BOOST_ATOMIC_DECL void thread_fence() BOOST_NOEXCEPT;
Chris@101 44 static BOOST_ATOMIC_DECL void signal_fence() BOOST_NOEXCEPT;
Chris@16 45 };
Chris@16 46
Chris@101 47 } // namespace detail
Chris@101 48 } // namespace atomics
Chris@101 49 } // namespace boost
Chris@16 50
Chris@101 51 #endif // BOOST_ATOMIC_DETAIL_LOCKPOOL_HPP_INCLUDED_