Class CTimer#

Inheritance Relationships#

Base Types#

Class Documentation#

class CTimer : public sdv::IInterfaceAccess, public sdv::IObjectDestroy#

Timer object managing the lifetime of the timer.

Public Functions

CTimer(CTaskTimerService &rtimersvc, uint32_t uiPeriod, sdv::core::ITaskExecute *pExecute)#

Constructor.

Parameters:
  • rtimersvc[in] Reference to the task timer service.

  • uiPeriod[in] The period of the task timer (must not be 0) in ms.

  • pExecute[in] Pointer to the interface containing the execution function.

virtual void DestroyObject() override#

Destroy the object. Overload of sdv::IObjectDestroy::DestroyObject.

operator bool() const#

Operator returning info about the validity of the timer.