RtTimerSetTime()

Set the expiration time for a realtime timer

Synopsis:

#include <photon/realtime/RtTimer.h>

int RtTimerSetTime( RtTimer_t *timer,
                    int flags,
                    struct itimerspec *value,
                    struct itimerspec *ovalue );

Arguments:

timer
A pointer to a RtTimer_t that was created by a call to RtTimerCreate().
flags
See timer_settime() in the QNX Neutrino Library Reference.
value
A pointer to a itimerspec structure that defines the new expiration time.
ovalue
If non-NULL, a pointer to a itimerspec structure in which to store the old expiration time.

Library:

ph

Description:

This function sets the expiration time for the timer identified by the structure pointed to by timer to the time specified by value.

Returns:

0
Success.
-1
An error occurred; errno is set.

Errors:

See timer_settime() in the QNX Neutrino Library Reference.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

RtTimerCreate(), RtTimerDelete(), RtTimerGetTime()

timer_settime() in the QNX Neutrino Library Reference

Timers in the Working with Code chapter of the Photon Programmer's Guide