1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #ifndef BOOST_LOG_DETAIL_FAKE_MUTEX_HPP_INCLUDED_
- #define BOOST_LOG_DETAIL_FAKE_MUTEX_HPP_INCLUDED_
- #include <boost/log/detail/config.hpp>
- #include <boost/log/detail/header.hpp>
- #ifdef BOOST_HAS_PRAGMA_ONCE
- #pragma once
- #endif
- namespace boost {
- BOOST_LOG_OPEN_NAMESPACE
- namespace aux {
- class fake_mutex
- {
- public:
- BOOST_DEFAULTED_FUNCTION(fake_mutex(), {})
- void lock() {}
- bool try_lock() { return true; }
- template< typename T >
- bool timed_lock(T const&) { return true; }
- void unlock() {}
-
- BOOST_DELETED_FUNCTION(fake_mutex(fake_mutex const&))
- BOOST_DELETED_FUNCTION(fake_mutex& operator=(fake_mutex const&))
- };
- }
- BOOST_LOG_CLOSE_NAMESPACE
- }
- #include <boost/log/detail/footer.hpp>
- #endif
|