1 #ifndef INC_ross_inline_h
2 #define INC_ross_inline_h
47 tw_error(
TW_LOC,
"Cannot send events into the past! Sending LP: %lu\n", sender->
gid);
76 "No free event buffers. Try increasing via g_tw_events_per_pe"
tw_synch g_tw_synchronization_protocol
static void * tw_event_data(tw_event *event)
void * delta_buddy
Delta memory from buddy allocator.
double g_tw_min_detected_offset
tw_lp * dest_lp
Destination LP ID.
static tw_event * tw_event_grab(tw_pe *pe)
char message[256-2 *sizeof(void *)]
tw_eventid event_id
Unique id assigned by src_lp->pe if remote.
unsigned int critical_path
Critical path value for this LP.
void tw_error(const char *file, int line, const char *fmt,...) NORETURN
tw_statistics stats
per PE counters
tw_stime recv_ts
Actual time to be received.
tw_event * cancel_next
Next event in the cancel queue for the dest_pe.
static tw_clock tw_clock_read(void)
Holds the entire PE state.
tw_out * out_msgs
Output messages.
tw_eventq free_q
Linked list of free tw_events.
tw_event * abort_event
Placeholder event for when free_q is empty.
unsigned int critical_path
Critical path of this event.
static tw_stime tw_now(tw_lp const *lp)
tw_event * cause_next
Next in parent's caused_by_me chain.
static void tw_free_output_messages(tw_event *e, int print_message)
tw_event * caused_by_me
Start of event list caused by this event.
static void tw_event_free(tw_pe *pe, tw_event *e)
static tw_event * tw_eventq_pop(tw_eventq *q)
void buddy_free(void *ptr)
struct tw_event::@0 state
static void tw_eventq_unshift(tw_eventq *q, tw_event *e)
#define TW_STIME_ADD(x, y)
tw_lp * src_lp
Sending LP ID.
Rollback-aware output mechanism.
tw_stat s_events_past_end
void tw_kp_put_back_output_buffer(tw_out *out)
tw_event * io_event_grab(tw_pe *pe)
static tw_event * tw_event_new(tw_lpid dest_gid, tw_stime offset_ts, tw_lp *sender)
unsigned char owner
Owner of the next/prev pointers; see tw_event_owner.