PPL Logo

Event Class Reference

Record to store all info about an event in eventQueue. More...

#include <event.h>

Collaboration diagram for Event:

Collaboration graph
[legend]

Public Member Functions

 Event ()
 Basic Constructor.
 ~Event ()
 Destructor.
void pup (PUP::er &p)
 Pack/unpack/sizing operator.
void sanitize ()
 Check validity of data fields.

Data Fields

eventID evID
 The event's unique ID.
int fnIdx
 The event method index associated with this event.
POSE_TimeType timestamp
 The timestamp of this event.
int done
 Execution status: 0=not done, 1=done, 2=executing.
POSE_TimeType svt
 Virtual start and end time.
POSE_TimeType evt
double srt
 Real start and end time.
double ert
int commitBfrLen
 Length of commitBfr.
int commitErr
 Flag indicating commit error.
char * commitBfr
 Buffered output generated by this event.
eventMsgmsg
 The message corresponding to this event.
SpawnedEventspawnedList
 List of events spawned by this event.
repcpData
 Checkpointed state prior to execution of this event.
int serialCPdataSz
 Serialized checkpointed state prior to execution of this event.
char * serialCPdata
Eventnext
 Links to next and previous events in event queue.
Eventprev

Detailed Description

Record to store all info about an event in eventQueue.

Definition at line 34 of file event.h.


Constructor & Destructor Documentation

Event::Event (  ) 

Basic Constructor.

Data types for events and spawned events.

Basic Constructor

Definition at line 5 of file event.C.

Event::~Event (  ) 

Destructor.

Definition at line 15 of file event.C.

References commitBfr, free(), msg, SpawnedEvent::next, and spawnedList.

Here is the call graph for this function:


Member Function Documentation

void Event::pup ( PUP::er p  ) 

Pack/unpack/sizing operator.

Definition at line 33 of file event.C.

References CmiAlloc(), commitBfr, commitBfrLen, commitErr, cpData, done, EnvToUsr(), ert, evID, evt, fnIdx, PUP::er::isUnpacking(), msg, SpawnedEvent::next, p, SpawnedEvent::pup(), eventID::pup(), serialCPdata, serialCPdataSz, spawnedList, srt, svt, timestamp, and UsrToEnv().

Referenced by eventQueue::CommitEvents(), EqHeap::pup(), and HeapNode::pup().

Here is the call graph for this function:

Here is the caller graph for this function:

void Event::sanitize (  ) 

Check validity of data fields.

Execution status: 0=not done, 1=done, 2=executing

check commitBfr... not sure how check msg... not sure how check spawnedList... later check cpData... not sure how check links

Definition at line 110 of file event.C.

References commitBfr, commitBfrLen, commitErr, done, evID, fnIdx, msg, eventMsg::sanitize(), and eventID::sanitize().

Referenced by eventQueue::CommitEvents(), and HeapNode::sanitize().

Here is the call graph for this function:

Here is the caller graph for this function:


Field Documentation

Virtual start and end time.

Definition at line 45 of file event.h.

Referenced by eventQueue::CommitStatsHelper(), pup(), and rep::update().

Definition at line 45 of file event.h.

Referenced by eventQueue::CommitStatsHelper(), and pup().

double Event::srt

Real start and end time.

Definition at line 47 of file event.h.

Referenced by eventQueue::CommitStatsHelper(), pup(), sim::SeqResumeAfterCheckpoint(), and rep::update().

double Event::ert

Definition at line 47 of file event.h.

Referenced by eventQueue::CommitStatsHelper(), and pup().

Length of commitBfr.

Definition at line 49 of file event.h.

Referenced by eventQueue::CommitEvents(), eventQueue::eventQueue(), sim::InternalCommitPrintf(), pup(), opt::Rollback(), and sanitize().

Flag indicating commit error.

Definition at line 51 of file event.h.

Referenced by sim::CommitError(), eventQueue::CommitEvents(), pup(), opt::Rollback(), and sanitize().

Buffered output generated by this event.

Definition at line 53 of file event.h.

Referenced by eventQueue::CommitEvents(), eventQueue::eventQueue(), sim::InternalCommitPrintf(), pup(), opt::Rollback(), sanitize(), and ~Event().

List of events spawned by this event.

Definition at line 57 of file event.h.

Referenced by opt::CancelSpawn(), eventQueue::CommitEvents(), eventQueue::eventQueue(), pup(), and ~Event().

Checkpointed state prior to execution of this event.

Definition at line 59 of file event.h.

Referenced by chpt< StateType >::checkpoint(), eventQueue::CommitEvents(), pup(), chpt< StateType >::restore(), and opt::Rollback().

Serialized checkpointed state prior to execution of this event.

Definition at line 61 of file event.h.

Referenced by chpt< StateType >::checkpoint(), pup(), chpt< StateType >::restore(), and opt::Rollback().


The documentation for this class was generated from the following files:

Generated on Mon Sep 21 08:23:21 2020 for Charm++ by  doxygen 1.5.5