The ROme OpTimistic Simulator
2.0.0
A General-Purpose Multithreaded Parallel/Distributed Simulation Platform
Main Page
Data Structures
Files
File List
Globals
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
51
}
calqueue_node
;
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
*);
__calqueue_node
Definition:
calqueue.h:47
src
datatypes
calqueue.h
Generated by
1.8.11