deMutex Class Reference

Mutex. More...

#include <deMutex.h>

List of all members.

Public Member Functions

Constructors and Destructors
 deMutex ()
 Creates a mutex.
 ~deMutex ()
 Cleans the mutex.
Management
void Lock ()
 Locks the mutex.
bool TryLock ()
 Locks the mutex.
void Unlock ()
 Unlocks the mutex.

Detailed Description

Mutex.

Provides mutual exclusive access support using a thin wrapper around the operating system specific threading mutex.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

deMutex::deMutex (  )

Creates a mutex.

deMutex::~deMutex (  )

Cleans the mutex.


Member Function Documentation

void deMutex::Lock (  )

Locks the mutex.

If the mutex is already locked this call blocks until the original called released it.

bool deMutex::TryLock (  )

Locks the mutex.

If the mutex is already locked this call returns false and no lock is taken. If the mutex is not locked this call acquires the lock and return true.

void deMutex::Unlock (  )

Unlocks the mutex.

An exception is thrown if this thread is not holding the mutex.


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