Mutex.hpp
Go to the documentation of this file.
1 
5 #ifndef MUTEX_HPP
6 #define MUTEX_HPP
7 
9 #include <pthread.h>
10 
11 
12 //
13 // Mutex class
14 //
15 class Mutex
16 {
17 public:
18  Mutex();
19  ~Mutex();
20 
21  void lock();
22  void unlock();
23 
24 private:
25  pthread_mutex_t m_mutex;
26 };
27 
28 
29 
30 //
31 // Scoped Lock.
32 // Zerstoert das Mutex automatisch.
33 //
35 {
36 public:
37  ScopedLock(Mutex* mutexPtr);
38  ~ScopedLock();
39 private:
41 };
42 
43 
44 #endif // MUTEX_HPP
pthread_mutex_t m_mutex
Definition: Mutex.hpp:25
Mutex()
Definition: Mutex.cpp:38
Definition: Mutex.hpp:15
~Mutex()
Definition: Mutex.cpp:43
void unlock()
Definition: Mutex.cpp:52
Mutex * m_mutexPtr
Definition: Mutex.hpp:40
void lock()
Definition: Mutex.cpp:47


sick_scan
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Wed May 5 2021 03:05:48