OpenDaVINCI  4.16.0
Lock.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_BASE_LOCK_H_
21 #define OPENDAVINCI_CORE_BASE_LOCK_H_
22 
24 #include <memory>
26 
27 namespace odcore {
28  namespace base {
29 
30 class Mutex;
31 
32  using namespace std;
33 
47  private:
55  Lock(const Lock&);
56 
65  Lock& operator=(const Lock&);
66 
67  public:
73  Lock(Mutex &mutex);
74 
75  virtual ~Lock();
76 
82  Lock(std::shared_ptr<odcore::wrapper::SharedMemory> sp);
83 
84  private:
85  Mutex *m_mutex;
86  std::shared_ptr<odcore::wrapper::SharedMemory> m_sharedPointerToSharedMemory;
87  };
88 
89  }
90 } // odcore::base
91 
92 #endif /*OPENDAVINCI_CORE_BASE_LOCK_H_*/
Definition: base/Mutex.h:49
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: Lock.h:46