101 for (j = 0; j < 3; j++)
init_f init
LP setup routine.
struct st_lp_stats * lp_stats
void tw_lp_suspend(tw_lp *lp, int do_orig_event_rc, int error_num)
void tw_error(const char *file, int line, const char *fmt,...) NORETURN
tw_lptype * type
Type of this LP, including service callbacks.
tw_statistics stats
per PE counters
static tw_clock tw_clock_read(void)
Holds the entire PE state.
unsigned int suspend_flag
io_load_type g_io_load_at
void tw_pre_run_lps(tw_pe *me)
Function Pointers for ROSS Event Handlers.
void tw_lp_settype(tw_lpid id, tw_lptype *type)
tw_kp * kp
kp – Kernel process that we belong to (must match pe).
void tw_lp_onpe(tw_lpid id, tw_pe *pe, tw_lpid gid)
unsigned int suspend_do_orig_event_rc
struct st_lp_stats * last_stats[3]
tw_lpid g_st_analysis_nlp
tw_event * abort_event
Placeholder event for when free_q is empty.
static tw_stime tw_now(tw_lp const *lp)
tw_event * cur_event
Current event being processed.
void tw_lp_onkp(tw_lp *lp, tw_kp *kp)
void io_read_checkpoint()
unsigned int suspend_error_number
tw_event * caused_by_me
Start of event list caused by this event.
void(* init_f)(void *sv, tw_lp *me)
size_t state_sz
Number of bytes that SV is for the LP.
void(* pre_run_f)(void *sv, tw_lp *me)
void st_model_setup_types(tw_lp *lp)
tw_typemap_f g_tw_lp_typemap
void tw_init_lps(tw_pe *me)
tw_lptype * g_tw_lp_types
void * cur_state
Current application LP data.
void * tw_calloc(const char *file, int line, const char *for_who, size_t e_sz, size_t n)
pre_run_f pre_run
Second stage LP initialization.
unsigned char cev_abort
Current event being processed must be aborted.