趣味で作ってるロボット用ソフトウェア
 All Classes Files Functions Enumerations Enumerator Friends Pages
Time_manager.h
Go to the documentation of this file.
1 #ifndef HRK_TIME_MANAGER_H
2 #define HRK_TIME_MANAGER_H
3 
10 namespace hrk
11 {
12  class Mutex;
13  class Condition_variable;
14 
16  {
17  public:
18  typedef struct {
19  double wake_up_sec;
20  Condition_variable* condition_variable;
21  } delay_event_t;
22 
23  Time_manager();
24  ~Time_manager();
25 
26  double managed_ticks();
27  void set_play_speed_ratio(double ratio);
28  double play_speed_ratio() const;
29  void pause();
30  void resume();
31 
32  Mutex* mutex();
33  void register_event(delay_event_t* event, double sec);
34 
35  private:
36  Time_manager(const Time_manager& rhs);
37  Time_manager& operator = (const Time_manager& rhs);
38 
39  struct pImpl;
40  pImpl* pimpl;
41  };
42 }
43 
44 #endif
Definition: Condition_variable.h:16
Definition: Time_manager.h:15
Definition: Time_manager.h:18
Mutex.
Definition: Mutex.h:15