Function silc_fsm_get_schedule
SYNOPSIS
SilcSchedule silc_fsm_get_schedule(void *fsm);
DESCRIPTION
Returns the SilcSchedule that has been associated with the `fsm'.
If caller needs scheduler it may retrieve it with this function. This
function is used with both SilcFSM and SilcFSMThread contexts.
If the `fsm' is thread and real system threads are being used, and this
is called from the thread, it will return the SilcSchedule that was
allocated by the FSM for the thread. It is strongly recommended to
use this SilcSchedule if you are using real threads, and you need
scheduler in the thread. Note that, once the thread finishes the
returned SilcSchedule becomes invalid.
In other times this returns the SilcSchedule pointer that was given
to silc_fsm_alloc or silc_fsm_init.
|