Wrapper for an OS Mutex.
More...
#include <DcMutex.h>
List of all members.
Public Member Functions |
| CdcMutex () |
| Constructor - Initialize the mutext.
|
virtual | ~CdcMutex () |
| Destructor - Release the mutex.
|
bool | Lock (int wait=INFINITE) |
| Takes the mutex.
|
bool | Unlock () |
| Returns the mutex.
|
Detailed Description
Wrapper for an OS Mutex.
- Author:
- Erez Bibi
- Version:
- 1.0
Definition at line 37 of file DcMutex.h.
Constructor & Destructor Documentation
CdcMutex::CdcMutex |
( |
) |
[inline] |
Constructor - Initialize the mutext.
Definition at line 49 of file DcMutex.h.
virtual CdcMutex::~CdcMutex |
( |
) |
[inline, virtual] |
Destructor - Release the mutex.
Definition at line 58 of file DcMutex.h.
Member Function Documentation
bool CdcMutex::Lock |
( |
int |
wait = INFINITE ) |
[inline] |
Takes the mutex.
- Parameters:
-
wait | The time to wait if the mutex blocks [mSec]. |
- Returns:
- (bool) False if timeout.
Definition at line 67 of file DcMutex.h.
bool CdcMutex::Unlock |
( |
) |
[inline] |
Returns the mutex.
Definition at line 73 of file DcMutex.h.
The documentation for this class was generated from the following file: