MADNESS  version 0.9
Public Member Functions | List of all members
madness::MutexFair Class Reference

A scalable and fair mutex (not recursive) More...

#include <worldmutex.h>

Inheritance diagram for madness::MutexFair:
Inheritance graph
[legend]
Collaboration diagram for madness::MutexFair:
Collaboration graph
[legend]

Public Member Functions

 MutexFair ()
 
void lock () const
 
void unlock () const
 
bool try_lock () const
 

Detailed Description

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?

Constructor & Destructor Documentation

madness::MutexFair::MutexFair ( )
inline

Member Function Documentation

void madness::MutexFair::lock ( ) const
inline
bool madness::MutexFair::try_lock ( ) const
inline
void madness::MutexFair::unlock ( ) const
inline

The documentation for this class was generated from the following file: