Function silc_fsm_finish
SYNOPSIS
void silc_fsm_finish(void *fsm);
DESCRIPTION
Finishes the `fsm'. This function may be used in case the FSM
needs to be finished outside FSM states. Usually FSM is finished
by returning SILC_FSM_FINISH from the state, but if this is not
possible this function may be called. This function is used with
both SilcFSM and SilcFSMThread contexts.
If the `fsm' is a machine and it has running threads, the machine
will fatally fail. The caller must first finish the threads and
then the machine.
|