Warning, file /include/boost/signals2/detail/unique_lock.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
0008
0009
0010
0011
0012 #ifndef BOOST_SIGNALS2_UNIQUE_LOCK_HPP
0013 #define BOOST_SIGNALS2_UNIQUE_LOCK_HPP
0014
0015 #include <boost/core/noncopyable.hpp>
0016
0017 namespace boost
0018 {
0019 namespace signals2
0020 {
0021 namespace detail
0022 {
0023 template<typename Mutex>
0024 class unique_lock: public noncopyable
0025 {
0026 public:
0027 unique_lock(Mutex &m): _mutex(m)
0028 {
0029 _mutex.lock();
0030 }
0031 ~unique_lock()
0032 {
0033 _mutex.unlock();
0034 }
0035 private:
0036 Mutex &_mutex;
0037 };
0038 }
0039 }
0040 }
0041
0042 #endif