libcmutils 0.6.5
Multi-platform C99 utility library
Loading...
Searching...
No Matches
CMUTIL_TimerTask Struct Reference

Timer task handle. More...

Data Fields

void(* Cancel )(CMUTIL_TimerTask *task)
 Cancel the scheduled timer task and destroy.
 

Detailed Description

Timer task handle.

Field Documentation

◆ Cancel

void(* CMUTIL_TimerTask::Cancel) (CMUTIL_TimerTask *task)

Cancel the scheduled timer task and destroy.

This function cancels the execution of the timer task if it has not yet been executed. Once canceled, the task will not be executed in the future. This function also frees the resources associated with the timer task. Do not call this function after Timer destroyed, may cause undefined behavior.

Parameters
taskThe timer task to be canceled and destroyed.

The documentation for this struct was generated from the following file: