Implements a mutex that simulates a mutex without doing any operation and simulates a successful operation. More...
#include <null_mutex.hpp>
Public Member Functions | |
BOOST_THREAD_NO_COPYABLE (null_mutex) null_mutex() | |
void | lock () |
Simulates a mutex lock() operation. Empty function. More... | |
bool | try_lock () |
Simulates a mutex try_lock() operation. More... | |
void | unlock () |
Simulates a mutex unlock() operation. More... | |
void | lock_shared () |
Simulates a mutex lock_shared() operation. More... | |
bool | try_lock_shared () |
Simulates a mutex try_lock_shared() operation. More... | |
void | unlock_shared () |
Simulates a mutex unlock_shared() operation. More... | |
template<typename Clock , typename Duration > | |
bool | try_lock_shared_until (chrono::time_point< Clock, Duration > const &) |
Simulates a mutex try_lock_shared_until() operation. More... | |
template<typename Rep , typename Period > | |
bool | try_lock_shared_for (chrono::duration< Rep, Period > const &) |
Simulates a mutex try_lock_shared_for() operation. More... | |
void | lock_upgrade () |
Simulates a mutex lock_upgrade() operation. More... | |
bool | try_lock_upgrade () |
Simulates a mutex try_lock_upgrade() operation. More... | |
void | unlock_upgrade () |
Simulates a mutex unlock_upgrade() operation. More... | |
template<typename Clock , typename Duration > | |
bool | try_lock_upgrade_until (chrono::time_point< Clock, Duration > const &) |
Simulates a mutex try_lock_upgrade_until() operation. More... | |
template<typename Rep , typename Period > | |
bool | try_lock_upgrade_for (chrono::duration< Rep, Period > const &) |
Simulates a mutex try_lock_upgrade_for() operation. More... | |
bool | try_unlock_shared_and_lock () |
Simulates a mutex try_unlock_shared_and_lock() operation. More... | |
void | unlock_and_lock_shared () |
Simulates unlock_and_lock_shared(). More... | |
bool | try_unlock_shared_and_lock_upgrade () |
Simulates a mutex try_unlock_shared_and_lock_upgrade() operation. More... | |
void | unlock_and_lock_upgrade () |
Simulates unlock_and_lock_upgrade(). More... | |
void | unlock_upgrade_and_lock () |
Simulates unlock_upgrade_and_lock(). More... | |
bool | try_unlock_upgrade_and_lock () |
Simulates a mutex try_unlock_upgrade_and_lock() operation. More... | |
void | unlock_upgrade_and_lock_shared () |
Simulates unlock_upgrade_and_lock_shared(). More... | |
Implements a mutex that simulates a mutex without doing any operation and simulates a successful operation.
|
inline |
|
inline |
Simulates a mutex lock() operation. Empty function.
|
inline |
Simulates a mutex lock_shared() operation.
Empty function.
|
inline |
Simulates a mutex lock_upgrade() operation.
Empty function.
|
inline |
Simulates a mutex try_lock() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_lock_shared() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_lock_shared_for() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_lock_shared_until() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_lock_upgrade() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_lock_upgrade_for() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_lock_upgrade_until() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_unlock_shared_and_lock() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_unlock_shared_and_lock_upgrade() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex try_unlock_upgrade_and_lock() operation.
Equivalent to "return true;"
|
inline |
Simulates a mutex unlock() operation.
Empty function.
|
inline |
Simulates unlock_and_lock_shared().
Empty function.
|
inline |
Simulates unlock_and_lock_upgrade().
Empty function.
|
inline |
Simulates a mutex unlock_shared() operation.
Empty function.
|
inline |
Simulates a mutex unlock_upgrade() operation.
Empty function.
|
inline |
Simulates unlock_upgrade_and_lock().
Empty function.
|
inline |
Simulates unlock_upgrade_and_lock_shared().
Empty function.