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

PtTimerArm()

Arm a timer event on a widget

Synopsis:

int PtTimerArm( PtWidget_t *widget, 
                unsigned msec );

Description:

This function arms a timer event to be trigger after msec milliseconds. When the timer event is triggered, it's sent to the widget specified by widget. For this widget to receive the event, it must provide a raw callback of type Ph_EV_TIMER.


Note: Any pending timers for a widget are removed automatically when the widget is unrealized.

Returns:

0
Successful completion.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PhTimerArm()


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