ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
Functions
serial.c File Reference

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>
Include dependency graph for serial.c:

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.
 

Detailed Description

Sequential simulation engine.

Function Documentation

◆ heap_declare()

static heap_declare ( struct lp_msg )
static

The messages queue of the serial runtime.

Initialize the serial simulation environment

◆ ScheduleNewEvent_serial()

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.

Parameters
receiverdestination LP
timestamptimestamp of the injected event
event_typemodel-defined type
payloadpayload of the event
payload_sizesize of the payload