LRT14  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Mutex.h
1 #ifndef RHESUS_MUTEX_H_
2 #define RHESUS_MUTEX_H_
3 
4 #include "semLib.h"
5 #include "taskLib.h"
6 #include "sysLib.h"
7 
8 namespace Rhesus
9 {
10 namespace Toolkit
11 {
12 namespace Tasks
13 {
14 
15  class Mutex
16  {
17  public:
21  Mutex();
22  ~Mutex();
23 
27  void Unlock();
28 
32  void Lock();
33 
37  void Lock(INT32 timeout);
38 
42  bool IsLocked();
43 
47  void Flush();
48 
49  private:
50 #ifdef __VXWORKS__
51  SEM_ID m_sem;
52 #endif
53 
54  };
55 
56 }
57 
58 }
59 
60 }
61 
62 #endif