Flair
Framework Libre Air
flair::core::Mutex Class Reference

Class defining a mutex. More...

#include <Mutex.h>

+ Inheritance diagram for flair::core::Mutex:

Public Member Functions

 Mutex (const Object *parent, std::string name="")
 Constructor. More...
 
 ~Mutex ()
 Destructor. More...
 
void GetMutex (void) const
 GetMutex. More...
 
void ReleaseMutex (void) const
 ReleaseMutex. More...
 
- Public Member Functions inherited from flair::core::Object
 Object (const Object *parent=NULL, std::string name="", std::string type="")
 Constructor. More...
 
virtual ~Object ()
 Destructor. More...
 
std::string ObjectName (void) const
 Name. More...
 
std::string ObjectType (void) const
 Type. More...
 
const ObjectParent (void) const
 Parent. More...
 
std::vector< const Object * > * TypeChilds (void) const
 Childs of the same type. More...
 
std::vector< const Object * > * Childs (void) const
 Childs. More...
 
void Information (const char *function, int line, const char *format,...) const
 Formatted information. More...
 
void Warning (const char *function, const char *format,...) const
 Formatted warning. More...
 
void Error (const char *function, const char *format,...) const
 Formatted error. More...
 
bool ErrorOccured (bool recursive=true) const
 Has an errror occured? More...
 

Additional Inherited Members

- Public Types inherited from flair::core::Object
enum  color_t { Auto = 0, Red = 31, Green = 32, Orange = 33 }
 

Detailed Description

Class defining a mutex.

Constructor & Destructor Documentation

flair::core::Mutex::Mutex ( const Object parent,
std::string  name = "" 
)

Constructor.

Construct a mutex.

Parameters
parentparent
namename
flair::core::Mutex::~Mutex ( )

Destructor.

Member Function Documentation

void flair::core::Mutex::GetMutex ( void  ) const

GetMutex.

Lock the mutex.

void flair::core::Mutex::ReleaseMutex ( void  ) const

ReleaseMutex.

Unlock the mutex.