fesa::AbstractMutex Class Reference

This class provides the services that all the mutex have to implement This allows to define a interface so that you can use the mutex services without knowing the implementation (shared, or normal). More...

#include <AbstractMutex.h>

Inheritance diagram for fesa::AbstractMutex:
fesa::Mutex fesa::SharedMutex

List of all members.

Public Member Functions

virtual ~AbstractMutex ()
 destructor
void lock ()
 lock the mutex
void unlock ()
 unlock the mutex

Static Public Member Functions

static int32_t getSize ()

Protected Member Functions

 AbstractMutex ()
void init (int32_t processShared)

Protected Attributes

pthread_mutex_t * lock_
 pointer to Mutex in Shared Memory
bool memoryOwner_

Detailed Description

This class provides the services that all the mutex have to implement This allows to define a interface so that you can use the mutex services without knowing the implementation (shared, or normal).

Definition at line 19 of file AbstractMutex.h.


Constructor & Destructor Documentation

fesa::AbstractMutex::~AbstractMutex (  )  [virtual]

destructor

Definition at line 22 of file AbstractMutex.cpp.

References lock_, and memoryOwner_.

fesa::AbstractMutex::AbstractMutex (  )  [inline, protected]

Definition at line 63 of file AbstractMutex.h.


Member Function Documentation

int32_t fesa::AbstractMutex::getSize (  )  [static]
void fesa::AbstractMutex::init ( int32_t  processShared  )  [protected]
void fesa::AbstractMutex::lock (  ) 
void fesa::AbstractMutex::unlock (  ) 

unlock the mutex

Definition at line 46 of file AbstractMutex.cpp.

References lock_.

Referenced by fesa::Lock::~Lock().


Member Data Documentation


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1