StopControl implements the stop mechanism generically.  
 More...
#include <StopControl.h>
|  | 
| class | Run | 
|  | Helper class for managing a common stoppable loop situation:  More... 
 | 
|  | 
StopControl implements the stop mechanism generically. 
      
        
          | void StopControl::clear | ( |  | ) |  | 
      
 
Clear the stop request and reinitialize. 
 
 
  
  | 
        
          | bool StopControl::doWait | ( | long | ms | ) |  |  | protected | 
 
Perform the actual m_event.wait() or m_event.tryWait(ms). 
 
 
      
        
          | void StopControl::requestStop | ( |  | ) |  | 
      
 
 
      
        
          | void StopControl::requestWakeup | ( |  | ) |  | 
      
 
Request wakeup (without requesting a stop). 
 
 
      
        
          | bool StopControl::shouldStop | ( |  | ) | const | 
      
 
- Returns
- true to determine whether a stop request has been made. 
 
 
      
        
          | bool StopControl::waitStoppable | ( | const Poco::Timespan & | timeout | ) |  | 
      
 
Wait for the specified timeout unless a stop is requested. If the timeout is negative, it waits without timeout. Timeout in range 0 < timeout < 1 ms is fixed to be 1 ms.
- Returns
- true when woken up, false when timeout exceeded 
 
 
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/beeeon-gateway-master/base/src/loop/StopControl.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/base/src/loop/StopControl.cpp