sendUntimedData
void sendUntimedData(Event* data);
Send an event during SST's init()
or complete()
phase.
note
The sendInitData
and sendUntimedData
functions are identical. The latter was added when SST added the complete()
phase to indicate that it could be used during any untimed phase, not just init()
. sendInitData
may eventually be deprecated in favor of sendUntimedData
.
Parameters
- data (Event*) Event to send
- returns none
Example
Excerpt from sst-elements/src/sst/elements/simpleElementExample/basicSimLifeCycle.cc
void basicSimLifeCycle::init(unsigned int phase) {
// Only send our info on phase 0
if (phase == 0) {
basicLifeCycleEvent* event = new basicLifeCycleEvent(getName(), eventsToSend);
leftLink->sendUntimedData(event);
}
/** Rest of init() handling **/
}
Header
#include <sst/core/link.h>