Flair
Framework Libre Air
Mutex.h
Go to the documentation of this file.
1 // %flair:license{
2 // This file is part of the Flair framework distributed under the
3 // CECILL-C License, Version 1.0.
4 // %flair:license}
13 #ifndef MUTEX_H
14 #define MUTEX_H
15 
16 #include <Object.h>
17 
18 class Mutex_impl;
19 class ConditionVariable_impl;
20 
21 namespace flair {
22 namespace core {
23 
29 class Mutex : public Object {
30  friend class ::ConditionVariable_impl;
31 
32 public:
41  Mutex(const Object *parent, std::string name = "");
42 
47  ~Mutex();
48 
55  void GetMutex(void) const;
56 
63  void ReleaseMutex(void) const;
64 
65 private:
66  class Mutex_impl *pimpl_;
67 };
68 
69 } // end namespace core
70 } // end namespace flair
71 
72 #endif // MUTEX_H
Mutex(const Object *parent, std::string name="")
Constructor.
Base class for all Framework's classes.
Definition: Object.h:83
namespace of the flair Framework
Definition: Ahrs.h:19
Class defining a mutex.
Definition: Mutex.h:29
void ReleaseMutex(void) const
ReleaseMutex.
~Mutex()
Destructor.
Base class for all Framework's classes.
void GetMutex(void) const
GetMutex.