Public Methods | |
| Timer (IOEventLoop &loop, Time when=Time::none()) | |
| Constructor.  | |
| virtual | ~Timer () | 
| Destructor.  | |
| void | arm (Time when) | 
| Arms the Timer for a particular point in time.  | |
| void | disarm () | 
| Disarms the Timer.  | |
| bool | is_armed () | 
| Returns true if the Timer is armed.  | |
| Time | get_when () | 
| Returns the time that the Timer will fire (or Time::none()) if unarmed.  | |
Protected Methods | |
| virtual void | fire ()=0 | 
| Invoked by the event loop when the Timer fires.  | |
Friends | |
| class | IOEventLoop | 
      
  | 
  ||||||||||||
| 
 Constructor. 
  | 
  
      
  | 
  
| 
 Destructor. 
  | 
  
      
  | 
  
| 
 Arms the Timer for a particular point in time. To disarm the Timer, use arm(Time::none()). To arm the Timer for 1 millisecond in the future, use arm(Time::now() + Time::msec(1)).  | 
  
      
  | 
  
| 
 Disarms the Timer. 
  | 
  
      
  | 
  
| 
 Invoked by the event loop when the Timer fires. 
  | 
  
      
  | 
  
| 
 Returns the time that the Timer will fire (or Time::none()) if unarmed. 
  | 
  
      
  | 
  
| 
 Returns true if the Timer is armed. 
  | 
  
      
  | 
  
| 
 
  |