Chris@16: // A model of the Lockable concept from Boost.Thread which Chris@16: // does nothing. It can be passed as the Mutex template parameter Chris@16: // for a signal, if the user wishes to disable thread-safety Chris@16: // (presumably for performance reasons). Chris@16: Chris@16: // Copyright Frank Mori Hess 2008. Chris@16: // Distributed under the Boost Software License, Version Chris@16: // 1.0. (See accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: // See http://www.boost.org/libs/signals2 for library home page. Chris@16: Chris@16: #ifndef BOOST_SIGNALS2_DUMMY_MUTEX_HPP Chris@16: #define BOOST_SIGNALS2_DUMMY_MUTEX_HPP Chris@16: Chris@16: namespace boost { Chris@16: namespace signals2 { Chris@16: class dummy_mutex Chris@16: { Chris@16: public: Chris@16: void lock() {} Chris@16: bool try_lock() {return true;} Chris@16: void unlock() {} Chris@16: }; Chris@16: } // end namespace signals2 Chris@16: } // end namespace boost Chris@16: Chris@16: #endif // BOOST_SIGNALS2_DUMMY_MUTEX_HPP