123456789101112131415161718192021222324252627282930313233343536373839 |
- #ifndef BOOST_THREAD_IS_LOCKED_BY_THIS_THREAD_HPP
- #define BOOST_THREAD_IS_LOCKED_BY_THIS_THREAD_HPP
- #include <boost/thread/detail/config.hpp>
- #include <boost/config/abi_prefix.hpp>
- namespace boost
- {
- template <typename Lockable>
- class testable_mutex;
-
- template <typename Lockable>
- bool is_locked_by_this_thread(testable_mutex<Lockable> const& mtx)
- {
- return mtx.is_locked_by_this_thread();
- }
- template <typename Lockable>
- bool is_locked_by_this_thread(Lockable const&)
- {
- return true;
- }
- }
- #include <boost/config/abi_suffix.hpp>
- #endif
|