Mutual exclusion lock to protect shared data. More...
Public Member Functions | |
| void | Lock () const | 
| Obtains the lock.   | |
| void | Lock () const | 
| Obtains the lock.   | |
| Mutex (DummyRecursiveAttribute v) | |
| Mutex (DummyRecursiveAttribute v) | |
| bool | TryLock () const | 
| Tries to lock, returns false if doing so would require waiting.   | |
| bool | TryLock () const | 
| Tries to lock, returns false if doing so would require waiting.   | |
| void | Unlock () const | 
| Releases the lock.   | |
| void | Unlock () const | 
| Releases the lock.   | |
Static Public Attributes | |
| static Mutex | global | 
Friends | |
| class | WaitCondition | 
Mutual exclusion lock to protect shared data.
Definition at line 188 of file thread.h.
| void Mutex::Lock | ( | ) |  const [inline] | 
        
Obtains the lock.
Definition at line 226 of file thread.h.
Referenced by DoneCondition::Done(), GrainQueue< Grain >::Pop(), GrainQueue< Grain >::Put(), ValueCondition::Wait(), and DoneCondition::Wait().
| bool Mutex::TryLock | ( | ) |  const [inline] | 
        
| bool Mutex::TryLock | ( | ) |  const [inline] | 
        
| void Mutex::Unlock | ( | ) |  const [inline] | 
        
Releases the lock.
Definition at line 238 of file thread.h.
Referenced by DoneCondition::Done(), GrainQueue< Grain >::Pop(), GrainQueue< Grain >::Put(), ValueCondition::Wait(), and DoneCondition::Wait().
 1.6.3