![]() |
![]() |
![]() |
![]() |
![]() |
This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs. |
Create a timer
timer_t devi_register_timer( input_module_t *module,
int prio,
int *pc,
struct sigevent *evp );
This function creates a timer. To arm the timer, the caller must call the OS library time_settime() function.
![]() |
The default notification is a pulse when the timer expires. You can override this by passing a prebuilt event in evp. |
The arguments are:
0 on success, -1 on error.
QNX
| Safety: | |
|---|---|
| Interrupt handler | Not applicable |
| Signal handler | Not applicable |
| Thread | Not applicable |
![]() |
![]() |
![]() |
![]() |