OpenDaVINCI  4.15.3
wrapper/Condition.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_CONDITION_H_
21 #define OPENDAVINCI_CORE_WRAPPER_CONDITION_H_
22 
23 namespace odcore {
24  namespace wrapper {
25 
32  class Condition {
33  public:
34  virtual ~Condition();
35 
40  virtual void waitOnSignal() = 0;
41 
46  virtual bool waitOnSignalWithTimeout(const unsigned long ms) = 0;
47 
51  virtual void wakeOne() = 0;
52 
57  virtual void wakeAll() = 0;
58 
62  virtual void lock() = 0;
63 
69  virtual bool tryLock() = 0;
70 
74  virtual void unlock() = 0;
75  };
76 
77  }
78 } // odcore::wrapper
79 
80 #endif /*OPENDAVINCI_CORE_WRAPPER_CONDITION_H_*/
Definition: base/Condition.h:64
void wakeAll()
Definition: base/Condition.cpp:45
virtual ~Condition()
Definition: base/Condition.cpp:31
bool waitOnSignalWithTimeout(const unsigned long &ms)
Definition: base/Condition.cpp:37
void wakeOne()
Definition: base/Condition.cpp:41
virtual void lock()
Definition: base/Condition.cpp:49
virtual bool tryLock()
Definition: base/Condition.cpp:53
void waitOnSignal()
Definition: base/Condition.cpp:33
virtual void unlock()
Definition: base/Condition.cpp:57