Warning, file /include/boost/thread/is_locked_by_this_thread.hpp was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007 #ifndef BOOST_THREAD_IS_LOCKED_BY_THIS_THREAD_HPP
0008 #define BOOST_THREAD_IS_LOCKED_BY_THIS_THREAD_HPP
0009
0010 #include <boost/thread/detail/config.hpp>
0011
0012 #include <boost/config/abi_prefix.hpp>
0013
0014 namespace boost
0015 {
0016 template <typename Lockable>
0017 class testable_mutex;
0018
0019
0020
0021
0022
0023
0024
0025 template <typename Lockable>
0026 bool is_locked_by_this_thread(testable_mutex<Lockable> const& mtx)
0027 {
0028 return mtx.is_locked_by_this_thread();
0029 }
0030 template <typename Lockable>
0031 bool is_locked_by_this_thread(Lockable const&)
0032 {
0033 return true;
0034 }
0035 }
0036
0037 #include <boost/config/abi_suffix.hpp>
0038
0039 #endif