The ROme OpTimistic Simulator  3.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
termination.h
Go to the documentation of this file.
1 
9 #pragma once
10 
11 #include <core/core.h>
12 
13 #include <stdatomic.h>
14 
15 extern atomic_int nodes_to_end;
16 
17 #define termination_cant_end() (atomic_load_explicit(&nodes_to_end, memory_order_relaxed) > 0)
18 
19 extern void termination_global_init(void);
20 extern void termination_lp_init(void);
21 extern void termination_on_msg_process(simtime_t msg_time);
22 extern void termination_on_gvt(simtime_t current_gvt);
23 extern void termination_on_lp_rollback(simtime_t msg_time);
24 extern void termination_on_ctrl_msg(void);
25 extern void termination_force(void);
26 
simtime_t
double simtime_t
The type used to represent logical time in the simulation.
Definition: core.h:62
core.h
Core ROOT-Sim functionalities.