The ROme OpTimistic Simulator  2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
calqueue.h
Go to the documentation of this file.
1 
42 #pragma once
43 
44 #define CALQSPACE 65536 // Calendar array size needed for maximum resize
45 #define MAXNBUCKETS 32768 // Maximum number of buckets in calendar queue
46 
47 typedef struct __calqueue_node {
48  double timestamp; // Timestamp associated to the event
49  void *payload; // A pointer to the actual content of the node
50  struct __calqueue_node *next; // Pointers to other nodes
52 
53 typedef struct __calqueue_node *calendar_queue;
54 
55 extern void calqueue_init(void);
56 extern void *calqueue_get(void);
57 extern void calqueue_put(double, void *);