Home | Libraries | People | FAQ | More |
boost::interprocess::null_mutex
// In header: <boost/interprocess/sync/null_mutex.hpp> class null_mutex { public: // construct/copy/destruct null_mutex(); ~null_mutex(); // public member functions void lock(); bool try_lock(); bool timed_lock(const boost::posix_time::ptime &); void unlock(); void lock_sharable(); bool try_lock_sharable(); bool timed_lock_sharable(const boost::posix_time::ptime &); void unlock_sharable(); void lock_upgradable(); bool try_lock_upgradable(); bool timed_lock_upgradable(const boost::posix_time::ptime &); void unlock_upgradable(); void unlock_and_lock_upgradable(); void unlock_and_lock_sharable(); void unlock_upgradable_and_lock_sharable(); void unlock_upgradable_and_lock(); bool try_unlock_upgradable_and_lock(); bool timed_unlock_upgradable_and_lock(const boost::posix_time::ptime &); bool try_unlock_sharable_and_lock(); bool try_unlock_sharable_and_lock_upgradable(); };
Implements a mutex that simulates a mutex without doing any operation and simulates a successful operation.
null_mutex
public member functionsvoid lock();Simulates a mutex lock() operation. Empty function.
bool try_lock();
Simulates a mutex try_lock() operation. Equivalent to "return true;"
bool timed_lock(const boost::posix_time::ptime &);
Simulates a mutex timed_lock() operation. Equivalent to "return true;"
void unlock();
Simulates a mutex unlock() operation. Empty function.
void lock_sharable();
Simulates a mutex lock_sharable() operation. Empty function.
bool try_lock_sharable();
Simulates a mutex try_lock_sharable() operation. Equivalent to "return true;"
bool timed_lock_sharable(const boost::posix_time::ptime &);
Simulates a mutex timed_lock_sharable() operation. Equivalent to "return true;"
void unlock_sharable();
Simulates a mutex unlock_sharable() operation. Empty function.
void lock_upgradable();
Simulates a mutex lock_upgradable() operation. Empty function.
bool try_lock_upgradable();
Simulates a mutex try_lock_upgradable() operation. Equivalent to "return true;"
bool timed_lock_upgradable(const boost::posix_time::ptime &);
Simulates a mutex timed_lock_upgradable() operation. Equivalent to "return true;"
void unlock_upgradable();
Simulates a mutex unlock_upgradable() operation. Empty function.
void unlock_and_lock_upgradable();
Simulates unlock_and_lock_upgradable(). Empty function.
void unlock_and_lock_sharable();
Simulates unlock_and_lock_sharable(). Empty function.
void unlock_upgradable_and_lock_sharable();
Simulates unlock_upgradable_and_lock_sharable(). Empty function.
void unlock_upgradable_and_lock();
Simulates unlock_upgradable_and_lock(). Empty function.
bool try_unlock_upgradable_and_lock();
Simulates try_unlock_upgradable_and_lock(). Equivalent to "return true;"
bool timed_unlock_upgradable_and_lock(const boost::posix_time::ptime &);
Simulates timed_unlock_upgradable_and_lock(). Equivalent to "return true;"
bool try_unlock_sharable_and_lock();
Simulates try_unlock_sharable_and_lock(). Equivalent to "return true;"
bool try_unlock_sharable_and_lock_upgradable();
Simulates try_unlock_sharable_and_lock_upgradable(). Equivalent to "return true;"