DriveWorks SDK Reference
5.10.90 Release
For Test and Development only

Timer.h File Reference

Detailed Description

NVIDIA DriveWorks API: Timer

Description: This file defines the timer interface.

Definition in file Timer.h.

Go to the source code of this file.

Typedefs

typedef struct dwTimerObject const * dwConstTimerHandle_t
 
typedef struct dwTimeSourceObject const * dwConstTimeSourceHandle_t
 
typedef struct dwContextObject * dwContextHandle_t
 
typedef struct dwTimerObject * dwTimerHandle_t
 
typedef void(* dwTimerWork) (void *ptr)
 
typedef struct dwTimeSourceObject * dwTimeSourceHandle_t
 

Functions

DW_API_PUBLIC dwStatus dwTimer_cancelAsync (dwTimerHandle_t const timer)
 Asynchronously cancels all scheduled work associated with this timer. More...
 
DW_API_PUBLIC dwStatus dwTimer_cancelSync (dwTimerHandle_t const timer)
 Synchronously cancels all scheduled work associated with this timer. More...
 
DW_API_PUBLIC dwStatus dwTimer_initialize (dwTimerHandle_t *const timer, char8_t const *const timerName, dwContextHandle_t const context)
 Creates and initializes a DW Timer. More...
 
DW_API_PUBLIC dwStatus dwTimer_initializeFromSource (dwTimerHandle_t *const timer, char8_t const *const timerName, dwTimeSourceHandle_t const source)
 Creates and initializes a DW Timer. More...
 
DW_API_PUBLIC dwStatus dwTimer_release (dwTimerHandle_t const timer)
 Release the timer instance. More...
 
DW_API_PUBLIC dwStatus dwTimer_scheduleTaskOneShot (dwTimerWork const task, void *const clientData, dwTime_t const startTime, dwTimerHandle_t const timer)
 Scheduled a task to be run at a future time (non-recurring) More...
 
DW_API_PUBLIC dwStatus dwTimer_scheduleTaskRecurring (dwTimerWork const task, void *const clientData, dwTime_t const startTime, dwTime_t const period, dwTimerHandle_t const timer)
 Scheduled a task to be run at a future time (recurring) More...