silc_fsm_thread_init
SYNOPSIS
void silc_fsm_thread_init(SilcFSMThread thread, SilcFSM fsm, void *thread_context, SilcFSMThreadDestructor destructor, void *destructor_context, SilcBool real_thread);
DESCRIPTION
Initializes a pre-allocated SilcFSMThread context. This call is equivalent to silc_fsm_thread_alloc except that this takes the pre-allocated context as argument. The silc_fsm_free must not be called if this was called. If the `real_thread' is TRUE then the thread will actually be executed in real thread, if platform supports them.
NOTES
See the notes from the silc_fsm_thread_alloc.
EXAMPLE
SilcFSMThreadStruct thread; silc_fsm_thread_init(&thread, fsm, application, NULL, NULL, FALSE); silc_fsm_start(&thread, first_state);