annotate DEPENDENCIES/generic/include/boost/signals2/dummy_mutex.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // A model of the Lockable concept from Boost.Thread which
Chris@16 2 // does nothing. It can be passed as the Mutex template parameter
Chris@16 3 // for a signal, if the user wishes to disable thread-safety
Chris@16 4 // (presumably for performance reasons).
Chris@16 5
Chris@16 6 // Copyright Frank Mori Hess 2008.
Chris@16 7 // Distributed under the Boost Software License, Version
Chris@16 8 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 9 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 10
Chris@16 11 // See http://www.boost.org/libs/signals2 for library home page.
Chris@16 12
Chris@16 13 #ifndef BOOST_SIGNALS2_DUMMY_MUTEX_HPP
Chris@16 14 #define BOOST_SIGNALS2_DUMMY_MUTEX_HPP
Chris@16 15
Chris@16 16 namespace boost {
Chris@16 17 namespace signals2 {
Chris@16 18 class dummy_mutex
Chris@16 19 {
Chris@16 20 public:
Chris@16 21 void lock() {}
Chris@16 22 bool try_lock() {return true;}
Chris@16 23 void unlock() {}
Chris@16 24 };
Chris@16 25 } // end namespace signals2
Chris@16 26 } // end namespace boost
Chris@16 27
Chris@16 28 #endif // BOOST_SIGNALS2_DUMMY_MUTEX_HPP