[Previous] [Contents] [Index] [Next]

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 );

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.

If ovalue isn't NULL, the old expiration time is stored there.

For a description of the possible values for flags, see timer_settime() in the QNX 6 Library Reference.

Returns:

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

Errors:

See timer_settime() in the QNX 6 Library Reference.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

RtTimerCreate(), RtTimerDelete(), RtTimerGetTime()

timer_settime() in the QNX 6 Library Reference

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


[Previous] [Contents] [Index] [Next]