Mutex.hpp
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
6 #ifndef MUTEX_HPP
7 #define MUTEX_HPP
8 
9 #include <mutex>
10 #include <thread>
11 
13 // #include <pthread.h>
14 
15 
16 //
17 // Mutex class
18 //
19 class Mutex
20 {
21 public:
22  Mutex();
23  ~Mutex();
24 
25  void lock();
26  void unlock();
27 
28 private:
29  std::mutex m_mutex;
30  // pthread_mutex_t m_mutex;
31 };
32 
33 
34 
35 //
36 // Scoped Lock.
37 // Zerstoert das Mutex automatisch.
38 //
40 {
41 public:
42  ScopedLock(Mutex* mutexPtr);
43  ~ScopedLock();
44 private:
46 };
47 
48 
49 #endif // MUTEX_HPP
Mutex::lock
void lock()
Definition: Mutex.cpp:47
ScopedLock
Definition: Mutex.hpp:39
BasicDatatypes.hpp
ScopedLock::ScopedLock
ScopedLock(Mutex *mutexPtr)
Definition: Mutex.cpp:14
Mutex::~Mutex
~Mutex()
Definition: Mutex.cpp:43
ScopedLock::~ScopedLock
~ScopedLock()
Definition: Mutex.cpp:25
Mutex
Definition: Mutex.hpp:19
Mutex::Mutex
Mutex()
Definition: Mutex.cpp:38
sick_scan_base.h
ScopedLock::m_mutexPtr
Mutex * m_mutexPtr
Definition: Mutex.hpp:45
Mutex::m_mutex
std::mutex m_mutex
Definition: Mutex.hpp:29
Mutex::unlock
void unlock()
Definition: Mutex.cpp:53


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:09