2 Provides a basic subset of boost::unique_lock functionality. Provided only because
3 including boost/thread/locks.hpp requires linking to thread library
5 // Copyright Frank Mori Hess 2008.
6 // Distributed under the Boost Software License, Version
7 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
8 // http://www.boost.org/LICENSE_1_0.txt)
10 // See http://www.boost.org/libs/signals2 for library home page.
12 #ifndef BOOST_SIGNALS2_UNIQUE_LOCK_HPP
13 #define BOOST_SIGNALS2_UNIQUE_LOCK_HPP
15 #include <boost/noncopyable.hpp>
23 template<typename Mutex>
24 class unique_lock: public noncopyable
27 unique_lock(Mutex &m): _mutex(m)
39 } // namespace signals2
42 #endif // BOOST_SIGNALS2_UNIQUE_LOCK_HPP