![]() |
ROOT-Sim core
3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
|
Sequential simulation engine. More...
#include <serial/serial.h>#include <arch/timer.h>#include <datatypes/heap.h>#include <lib/random/random.h>#include <log/stats.h>#include <lp/common.h>#include <mm/msg_allocator.h>
Functions | |
| static | heap_declare (struct lp_msg *) |
| The messages queue of the serial runtime. More... | |
| static void | serial_simulation_fini (void) |
| Finalizes the serial simulation environment. | |
| static int | serial_simulation_run (void) |
| Runs the serial simulation. | |
| void | ScheduleNewEvent_serial (lp_id_t receiver, simtime_t timestamp, unsigned event_type, const void *payload, unsigned payload_size) |
| Schedule a new event. Sequential version. More... | |
| int | serial_simulation (void) |
| Handles a full serial simulation runs. | |
Sequential simulation engine.
|
static |
The messages queue of the serial runtime.
Initialize the serial simulation environment
| void ScheduleNewEvent_serial | ( | lp_id_t | receiver, |
| simtime_t | timestamp, | ||
| unsigned | event_type, | ||
| const void * | payload, | ||
| unsigned | payload_size | ||
| ) |
Schedule a new event. Sequential version.
| receiver | destination LP |
| timestamp | timestamp of the injected event |
| event_type | model-defined type |
| payload | payload of the event |
| payload_size | size of the payload |