PATH:
opt
/
cpanel
/
ea-ruby27
/
src
/
passenger-release-6.1.2
/
src
/
cxx_supportlib
/
vendor-modified
/
boost
/
thread
// Distributed under the Boost Software License, Version 1.0. (See // accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // (C) Copyright 2012 Vicente J. Botet Escriba #ifndef BOOST_THREAD_LOCK_FACTORIES_HPP #define BOOST_THREAD_LOCK_FACTORIES_HPP #include <boost/thread/lock_types.hpp> #include <boost/thread/lock_algorithms.hpp> #if ! defined(BOOST_THREAD_NO_MAKE_UNIQUE_LOCKS) #include <tuple> // todo change to <boost/tuple.hpp> once Boost.Tuple or Boost.Fusion provides Move semantics. #endif #include <boost/config/abi_prefix.hpp> namespace boost { template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx) { return unique_lock<Lockable> (mtx); } template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx, adopt_lock_t) { return unique_lock<Lockable> (mtx, adopt_lock); } template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx, defer_lock_t) { return unique_lock<Lockable> (mtx, defer_lock); } template <typename Lockable> unique_lock<Lockable> make_unique_lock(Lockable& mtx, try_to_lock_t) { return unique_lock<Lockable> (mtx, try_to_lock); } #if ! defined(BOOST_THREAD_NO_MAKE_UNIQUE_LOCKS) #if ! defined BOOST_NO_CXX11_VARIADIC_TEMPLATES template <typename ...Lockable> std::tuple<unique_lock<Lockable> ...> make_unique_locks(Lockable& ...mtx) { boost::lock(mtx...); return std::tuple<unique_lock<Lockable> ...>(unique_lock<Lockable>(mtx, adopt_lock)...); } #else template <typename L1, typename L2> std::tuple<unique_lock<L1>, unique_lock<L2> > make_unique_locks(L1& m1, L2& m2) { boost::lock(m1, m2); return std::tuple<unique_lock<L1>,unique_lock<L2> >( unique_lock<L1>(m1, adopt_lock), unique_lock<L2>(m2, adopt_lock) ); } template <typename L1, typename L2, typename L3> std::tuple<unique_lock<L1>, unique_lock<L2>, unique_lock<L3> > make_unique_locks(L1& m1, L2& m2, L3& m3) { boost::lock(m1, m2, m3); return std::tuple<unique_lock<L1>,unique_lock<L2>,unique_lock<L3> >( unique_lock<L1>(m1, adopt_lock), unique_lock<L2>(m2, adopt_lock), unique_lock<L3>(m3, adopt_lock) ); } #endif #endif } #include <boost/config/abi_suffix.hpp> #endif
[-] caller_context.hpp
[edit]
[-] thread_time.hpp
[edit]
[-] thread_guard.hpp
[edit]
[+]
csbl
[-] scoped_thread.hpp
[edit]
[+]
concurrent_queues
[-] with_lock_guard.hpp
[edit]
[-] ostream_buffer.hpp
[edit]
[-] testable_mutex.hpp
[edit]
[-] lockable_traits.hpp
[edit]
[-] externally_locked.hpp
[edit]
[+]
v2
[-] lock_concepts.hpp
[edit]
[-] thread.hpp
[edit]
[-] is_locked_by_this_thread.hpp
[edit]
[-] locks.hpp
[edit]
[-] latch.hpp
[edit]
[-] barrier.hpp
[edit]
[-] condition.hpp
[edit]
[-] thread_pool.hpp
[edit]
[-] shared_lock_guard.hpp
[edit]
[-] cv_status.hpp
[edit]
[+]
..
[-] condition_variable.hpp
[edit]
[-] thread_only.hpp
[edit]
[-] exceptions.hpp
[edit]
[+]
executors
[-] sync_bounded_queue.hpp
[edit]
[-] poly_lockable.hpp
[edit]
[-] lock_guard.hpp
[edit]
[+]
experimental
[-] future.hpp
[edit]
[-] lock_types.hpp
[edit]
[+]
futures
[-] sync_queue.hpp
[edit]
[-] exceptional_ptr.hpp
[edit]
[-] lock_traits.hpp
[edit]
[-] mutex.hpp
[edit]
[-] lock_options.hpp
[edit]
[-] poly_lockable_adapter.hpp
[edit]
[-] poly_shared_lockable.hpp
[edit]
[-] interruption.hpp
[edit]
[-] poly_shared_lockable_adapter.hpp
[edit]
[-] synchronized_value.hpp
[edit]
[-] executor.hpp
[edit]
[-] completion_latch.hpp
[edit]
[-] lock_algorithms.hpp
[edit]
[-] tss.hpp
[edit]
[+]
detail
[+]
pthread
[-] recursive_mutex.hpp
[edit]
[-] lock_factories.hpp
[edit]
[-] user_scheduler.hpp
[edit]
[-] null_mutex.hpp
[edit]
[-] lockable_adapter.hpp
[edit]
[-] strict_lock.hpp
[edit]
[-] lockable_concepts.hpp
[edit]
[-] reverse_lock.hpp
[edit]
[-] shared_mutex.hpp
[edit]
[-] xtime.hpp
[edit]
[-] externally_locked_stream.hpp
[edit]
[-] once.hpp
[edit]
[-] thread_functors.hpp
[edit]