![]() |
ROOT-Sim core
3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
|
Message queue datatype. More...


Go to the source code of this file.
Functions | |
| void | msg_queue_global_init (void) |
| void | msg_queue_global_fini (void) |
| Finalizes the message queue at the node level. | |
| void | msg_queue_init (void) |
| Initializes the message queue for the current thread. | |
| void | msg_queue_fini (void) |
| Finalizes the message queue for the current thread. | |
| struct lp_msg * | msg_queue_extract (void) |
| Extracts the next message from the queue. More... | |
| simtime_t | msg_queue_time_peek (void) |
| Peeks the timestamp of the next message from the queue. More... | |
| void | msg_queue_insert (struct lp_msg *msg) |
| Inserts a message in the queue. More... | |
Message queue datatype.
Message queue datatype
| struct lp_msg* msg_queue_extract | ( | void | ) |
Extracts the next message from the queue.
The extracted message is a best effort lowest timestamp for the current thread. Guaranteeing the lowest timestamp may increase the contention on the queues.
| void msg_queue_insert | ( | struct lp_msg * | msg | ) |
Inserts a message in the queue.
| msg | the message to insert in the queue |
| simtime_t msg_queue_time_peek | ( | void | ) |
Peeks the timestamp of the next message from the queue.
This returns the lowest timestamp of the next message to be processed for the current thread. This is calculated in a precise fashion since this value is used in the gvt calculation.