The Pedigree Project  0.1
Public Member Functions | List of all members
Mutex Class Reference

#include <Mutex.h>

+ Inheritance diagram for Mutex:
+ Collaboration diagram for Mutex:

Public Member Functions

 Mutex (bool bLocked=false)
 
 ~Mutex ()
 
- Public Member Functions inherited from Semaphore
 Semaphore (size_t nInitialValue, bool canInterrupt=true)
 
virtual ~Semaphore ()
 
SemaphoreResult acquireWithResult (size_t n=1, size_t timeoutSecs=0, size_t timeoutUsecs=0)
 
bool acquire (size_t n=1, size_t timeoutSecs=0, size_t timeoutUsecs=0)
 
bool tryAcquire (size_t n=1)
 
void release (size_t n=1)
 
ssize_t getValue ()
 

Additional Inherited Members

- Public Types inherited from Semaphore
enum  SemaphoreError { TimedOut, Interrupted }
 
typedef Result< bool, SemaphoreError > SemaphoreResult
 

Detailed Description

A mutex, or binary semaphore

Definition at line 58 of file Mutex.h.

Constructor & Destructor Documentation

Mutex::Mutex ( bool  bLocked = false)

Constructor

Definition at line 25 of file Mutex.cc.

Mutex::~Mutex ( )

Destructor

Definition at line 29 of file Mutex.cc.


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