![]() |
Home | Libraries | People | FAQ | More |
boost::interprocess::null_mutex
// In header: <boost/interprocess/sync/null_mutex.hpp> class null_mutex { public: // construct/copy/destruct () ; ~(); // public member functions (); (); template<typename TimePoint> (); template<typename TimePoint> (); template<typename Duration> (); (); (); (); (); (); template<typename TimePoint> (); (); (); (); (); template<typename TimePoint> (); (); (); (); (); (); (); template<typename TimePoint> (); (); (); };
Implements a mutex that simulates a mutex without doing any operation and simulates a successful operation.
null_mutex
public member functions();Simulates a mutex lock() operation. Empty function.
();
Simulates a mutex try_lock() operation. Equivalent to "return true;"
template<typename TimePoint> ();
Simulates a mutex timed_lock() operation. Equivalent to "return true;"
template<typename TimePoint> ();
Same as timed_lock
, but this function is modeled after the standard library interface.
template<typename Duration> ();
Same as timed_lock
, but this function is modeled after the standard library interface.
();
Simulates a mutex unlock() operation. Empty function.
();
Simulates a mutex lock_sharable() operation. Empty function.
();
Same as lock_sharable
but with a std-compatible interface
();
Simulates a mutex try_lock_sharable() operation. Equivalent to "return true;"
();
Same as try_lock_sharable
but with a std-compatible interface
template<typename TimePoint> ();
Simulates a mutex timed_lock_sharable() operation. Equivalent to "return true;"
();
Simulates a mutex unlock_sharable() operation. Empty function.
();
Same as unlock_sharable
but with a std-compatible interface
();
Simulates a mutex lock_upgradable() operation. Empty function.
();
Simulates a mutex try_lock_upgradable() operation. Equivalent to "return true;"
template<typename TimePoint> ();
Simulates a mutex timed_lock_upgradable() operation. Equivalent to "return true;"
();
Simulates a mutex unlock_upgradable() operation. Empty function.
();
Simulates unlock_and_lock_upgradable(). Empty function.
();
Simulates unlock_and_lock_sharable(). Empty function.
();
Simulates unlock_upgradable_and_lock_sharable(). Empty function.
();
Simulates unlock_upgradable_and_lock(). Empty function.
();
Simulates try_unlock_upgradable_and_lock(). Equivalent to "return true;"
template<typename TimePoint> ();
Simulates timed_unlock_upgradable_and_lock(). Equivalent to "return true;"
();
Simulates try_unlock_sharable_and_lock(). Equivalent to "return true;"
();
Simulates try_unlock_sharable_and_lock_upgradable(). Equivalent to "return true;"