MADNESS
version 0.9
|
A scalable and fair mutex (not recursive) More...
#include <worldmutex.h>
Public Member Functions | |
MutexFair () | |
void | lock () const |
void | unlock () const |
bool | try_lock () const |
A scalable and fair mutex (not recursive)
Needs rewriting to use the CV above and do we really need this if using pthread_mutex .. why not pthread_cv?
|
inline |
|
inline |
References b(), madness::cpu_relax(), madness::Spinlock::lock(), and madness::Spinlock::unlock().
|
inline |
References madness::Spinlock::lock(), and madness::Spinlock::unlock().
|
inline |
References madness::f, madness::Spinlock::lock(), and madness::Spinlock::unlock().