File indexing completed on 2025-01-18 09:39:21
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef BOOST_LOG_DETAIL_FAKE_MUTEX_HPP_INCLUDED_
0017 #define BOOST_LOG_DETAIL_FAKE_MUTEX_HPP_INCLUDED_
0018
0019 #include <boost/log/detail/config.hpp>
0020 #include <boost/log/detail/header.hpp>
0021
0022 #ifdef BOOST_HAS_PRAGMA_ONCE
0023 #pragma once
0024 #endif
0025
0026 namespace boost {
0027
0028 BOOST_LOG_OPEN_NAMESPACE
0029
0030 namespace aux {
0031
0032
0033 class fake_mutex
0034 {
0035 public:
0036 BOOST_DEFAULTED_FUNCTION(fake_mutex(), {})
0037 void lock() {}
0038 bool try_lock() { return true; }
0039 template< typename T >
0040 bool timed_lock(T const&) { return true; }
0041 void unlock() {}
0042
0043
0044 BOOST_DELETED_FUNCTION(fake_mutex(fake_mutex const&))
0045 BOOST_DELETED_FUNCTION(fake_mutex& operator=(fake_mutex const&))
0046 };
0047
0048 }
0049
0050 BOOST_LOG_CLOSE_NAMESPACE
0051
0052 }
0053
0054 #include <boost/log/detail/footer.hpp>
0055
0056 #endif