/usr/include/boost/interprocess/sync
NameSizeModeActions
detail/-0755rm
posix/-0755rm
shm/-0755rm
spin/-0755rm
windows/-0755rm
file_lock.hpp79620644editdlrm
interprocess_condition.hpp56560644editdlrm
interprocess_condition_any.hpp47620644editdlrm
interprocess_mutex.hpp59010644editdlrm
interprocess_recursive_mutex.hpp64510644editdlrm
interprocess_semaphore.hpp54740644editdlrm
interprocess_sharable_mutex.hpp109180644editdlrm
interprocess_upgradable_mutex.hpp228510644editdlrm
lock_options.hpp19830644editdlrm
mutex_family.hpp18870644editdlrm
named_condition.hpp71760644editdlrm
named_condition_any.hpp60240644editdlrm
named_mutex.hpp59910644editdlrm
named_recursive_mutex.hpp59920644editdlrm
named_semaphore.hpp65860644editdlrm
named_sharable_mutex.hpp92350644editdlrm
named_upgradable_mutex.hpp159940644editdlrm
null_mutex.hpp41970644editdlrm
scoped_lock.hpp161170644editdlrm
sharable_lock.hpp129180644editdlrm
upgradable_lock.hpp130820644editdlrm
Edit: /usr/include/boost/interprocess/sync/null_mutex.hpp (4197B)
////////////////////////////////////////////////////////////////////////////// // // (C) Copyright Ion Gaztanaga 2005-2012. Distributed under the Boost // Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // // See http://www.boost.org/libs/interprocess for documentation. // ////////////////////////////////////////////////////////////////////////////// #ifndef BOOST_INTERPROCESS_NULL_MUTEX_HPP #define BOOST_INTERPROCESS_NULL_MUTEX_HPP #ifndef BOOST_CONFIG_HPP # include #endif # #if defined(BOOST_HAS_PRAGMA_ONCE) # pragma once #endif #include #include //!\file //!Describes null_mutex classes namespace boost { #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) namespace posix_time { class ptime; } #endif //#if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) namespace interprocess { //!Implements a mutex that simulates a mutex without doing any operation and //!simulates a successful operation. class null_mutex { #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED) null_mutex(const null_mutex&); null_mutex &operator= (const null_mutex&); #endif //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED public: //!Constructor. //!Empty. null_mutex(){} //!Destructor. //!Empty. ~null_mutex(){} //!Simulates a mutex lock() operation. Empty function. void lock(){} //!Simulates a mutex try_lock() operation. //!Equivalent to "return true;" bool try_lock() { return true; } //!Simulates a mutex timed_lock() operation. //!Equivalent to "return true;" bool timed_lock(const boost::posix_time::ptime &) { return true; } //!Simulates a mutex unlock() operation. //!Empty function. void unlock(){} //!Simulates a mutex lock_sharable() operation. //!Empty function. void lock_sharable(){} //!Simulates a mutex try_lock_sharable() operation. //!Equivalent to "return true;" bool try_lock_sharable() { return true; } //!Simulates a mutex timed_lock_sharable() operation. //!Equivalent to "return true;" bool timed_lock_sharable(const boost::posix_time::ptime &) { return true; } //!Simulates a mutex unlock_sharable() operation. //!Empty function. void unlock_sharable(){} //!Simulates a mutex lock_upgradable() operation. //!Empty function. void lock_upgradable(){} //!Simulates a mutex try_lock_upgradable() operation. //!Equivalent to "return true;" bool try_lock_upgradable() { return true; } //!Simulates a mutex timed_lock_upgradable() operation. //!Equivalent to "return true;" bool timed_lock_upgradable(const boost::posix_time::ptime &) { return true; } //!Simulates a mutex unlock_upgradable() operation. //!Empty function. void unlock_upgradable(){} //!Simulates unlock_and_lock_upgradable(). //!Empty function. void unlock_and_lock_upgradable(){} //!Simulates unlock_and_lock_sharable(). //!Empty function. void unlock_and_lock_sharable(){} //!Simulates unlock_upgradable_and_lock_sharable(). //!Empty function. void unlock_upgradable_and_lock_sharable(){} //Promotions //!Simulates unlock_upgradable_and_lock(). //!Empty function. void unlock_upgradable_and_lock(){} //!Simulates try_unlock_upgradable_and_lock(). //!Equivalent to "return true;" bool try_unlock_upgradable_and_lock() { return true; } //!Simulates timed_unlock_upgradable_and_lock(). //!Equivalent to "return true;" bool timed_unlock_upgradable_and_lock(const boost::posix_time::ptime &) { return true; } //!Simulates try_unlock_sharable_and_lock(). //!Equivalent to "return true;" bool try_unlock_sharable_and_lock() { return true; } //!Simulates try_unlock_sharable_and_lock_upgradable(). //!Equivalent to "return true;" bool try_unlock_sharable_and_lock_upgradable() { return true; } }; } //namespace interprocess { } //namespace boost { #include #endif //BOOST_INTERPROCESS_NULL_MUTEX_HPP