compp::Mutex Class Reference

#include <Mutex.h>

Public Member Functions

 Mutex ()
virtual ~Mutex ()
bool Lock ()
bool TryLock ()
bool UnLock ()

Protected Attributes

pthread_mutex_t MutexId

Detailed Description

Definition at line 14 of file Mutex.h.


Constructor & Destructor Documentation

compp::Mutex::Mutex (  ) 

Constructor Creates a mutex with standard setting

Definition at line 18 of file Mutex.cpp.

compp::Mutex::~Mutex (  )  [virtual]

Destructor Entirely deletes the Mutex from the system

Definition at line 32 of file Mutex.cpp.


Member Function Documentation

bool compp::Mutex::Lock (  ) 

Locks a semaphore The method blocks until the semaphore can be locked

Definition at line 41 of file Mutex.cpp.

Here is the caller graph for this function:

bool compp::Mutex::TryLock (  ) 

Trylocks a semaphore The method tries to lock the seamphore. It it is already locked, the method returns false It the Mutlex can be locked, it is locked and true is returned

Definition at line 55 of file Mutex.cpp.

bool compp::Mutex::UnLock (  ) 

Unlocks the seamphore

Definition at line 66 of file Mutex.cpp.

Here is the caller graph for this function:


Field Documentation

pthread_mutex_t compp::Mutex::MutexId [protected]

Definition at line 16 of file Mutex.h.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines
Generated on Tue Dec 28 16:50:30 2010 for Com++ by  doxygen 1.6.3