28 self->command_interp = cmd_interp;
40 if (self->ops->dtor != NULL)
41 self->ops->dtor (
self);
51 if (self->ops->clean_up != NULL)
52 self->ops->clean_up (
self, thread);
60 return self->ops->should_stop (
self, thread);
68 if (self->ops->return_value != NULL)
69 return self->ops->return_value (
self);
86 return self->finished;
98 return self->ops->async_reply_reason (
self);
106 if (self->ops->should_notify_stop != NULL)
107 return self->ops->should_notify_stop (
self);
void thread_fsm_delete(struct thread_fsm *self)
int thread_fsm_should_stop(struct thread_fsm *self, struct thread_info *thread)
void thread_fsm_clean_up(struct thread_fsm *self, struct thread_info *thread)
enum async_reply_reason thread_fsm_async_reply_reason(struct thread_fsm *self)
int thread_fsm_finished_p(struct thread_fsm *self)
int thread_fsm_should_notify_stop(struct thread_fsm *self)
struct return_value_info * thread_fsm_return_value(struct thread_fsm *self)
void thread_fsm_ctor(struct thread_fsm *self, struct thread_fsm_ops *ops, struct interp *cmd_interp)
void thread_fsm_set_finished(struct thread_fsm *self)