Classes | |
class | Task |
Public Member Functions | |
def | __del__ |
Destructor. | |
def | __init__ |
Constructor. | |
def | invoke |
Invoke Timer task. | |
def | join |
def | registerListener |
Register listener. | |
def | registerListenerFunc |
Register listener. | |
def | registerListenerObj |
Register listener. | |
def | run |
Thread execution function for Timer. | |
def | start |
def | stop |
def | unregisterListener |
Unregister listener. | |
Private Attributes | |
_interval | |
_running | |
_runningMutex | |
_taskMutex | |
_tasks | |
_thread |
Timer class.
Invoke the callback function of registered listener periodically at the set cycle.
def OpenRTM_aist.Timer.Timer.__init__ | ( | self, | |
interval | |||
) |
def OpenRTM_aist.Timer.Timer.__del__ | ( | self | ) |
def OpenRTM_aist.Timer.Timer.invoke | ( | self | ) |
def OpenRTM_aist.Timer.Timer.join | ( | self | ) |
def OpenRTM_aist.Timer.Timer.registerListener | ( | self, | |
listener, | |||
tm | |||
) |
Register listener.
Register the listener of callback function invoked from this Timer by specifying the interval. If the same listener has already been regiseterd, the value specified the invocation interval of listener will be updated.
listener | Listener for the registration |
tm | The invocation interval of listener |
ListenerId registerListener(ListenerBase* listener, TimeValue tm);
def OpenRTM_aist.Timer.Timer.registerListenerFunc | ( | self, | |
cbf, | |||
tm | |||
) |
Register listener.
Register listener by specifying the method for callback and the invocation interval.
cbf | Target method for callback |
tm | The invocation interval of listener |
ListenerId registerListenerFunc(void (*cbf)(), TimeValue tm)
def OpenRTM_aist.Timer.Timer.registerListenerObj | ( | self, | |
obj, | |||
cbf, | |||
tm | |||
) |
Register listener.
Register listener by specifying the object for callback, the method for callback and the invocation interval.
obj | Target object for callback |
cbf | Target method for callback |
tm | The invocation interval of listener |
template <class listenerclass>=""> ListenerId registerListenerObj(ListenerClass* obj, void (ListenerClass::*cbf)(), TimeValue tm)
def OpenRTM_aist.Timer.Timer.run | ( | self | ) |
def OpenRTM_aist.Timer.Timer.start | ( | self | ) |
def OpenRTM_aist.Timer.Timer.stop | ( | self | ) |
def OpenRTM_aist.Timer.Timer.unregisterListener | ( | self, | |
id | |||
) |
OpenRTM_aist::Timer.Timer::_interval [private] |
OpenRTM_aist::Timer.Timer::_running [private] |
OpenRTM_aist::Timer.Timer::_runningMutex [private] |
OpenRTM_aist::Timer.Timer::_taskMutex [private] |
OpenRTM_aist::Timer.Timer::_tasks [private] |
OpenRTM_aist::Timer.Timer::_thread [private] |