|
|
|||
File indexing completed on 2025-12-16 10:08:48
0001 // A model of the Lockable concept from Boost.Thread which 0002 // does nothing. It can be passed as the Mutex template parameter 0003 // for a signal, if the user wishes to disable thread-safety 0004 // (presumably for performance reasons). 0005 0006 // Copyright Frank Mori Hess 2008. 0007 // Distributed under the Boost Software License, Version 0008 // 1.0. (See accompanying file LICENSE_1_0.txt or copy at 0009 // http://www.boost.org/LICENSE_1_0.txt) 0010 0011 // See http://www.boost.org/libs/signals2 for library home page. 0012 0013 #ifndef BOOST_SIGNALS2_DUMMY_MUTEX_HPP 0014 #define BOOST_SIGNALS2_DUMMY_MUTEX_HPP 0015 0016 namespace boost { 0017 namespace signals2 { 0018 class dummy_mutex 0019 { 0020 public: 0021 void lock() {} 0022 bool try_lock() {return true;} 0023 void unlock() {} 0024 }; 0025 } // end namespace signals2 0026 } // end namespace boost 0027 0028 #endif // BOOST_SIGNALS2_DUMMY_MUTEX_HPP
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|