ROSS
tw-queue.h
Go to the documentation of this file.
1#ifndef INC_tw_queue_h
2#define INC_tw_queue_h
3
4#include "ross-types.h"
5
6// This is the API for the tw queue system
7// There are several queue implementations
8
13#ifdef USE_RAND_TIEBREAKER
14/* Returns the mininum value from priority-queue. Do NOT modify or save pointer. It is safe to save *contents* of the struct that the pointer points at. */
15tw_event_sig const * tw_pq_minimum_sig_ptr(tw_pq const *);
16#endif
18unsigned int tw_pq_get_size(tw_pq *);
19unsigned int tw_pq_max_size(tw_pq *);
20#ifdef ROSS_QUEUE_kp_splay
21tw_eventpq * tw_eventpq_create(void);
22#endif
23
24#endif /* INC_tw_queue_h */
void tw_pq_enqueue(tw_pq *, tw_event *)
Definition splay.c:245
unsigned int tw_pq_max_size(tw_pq *)
Definition splay.c:424
void tw_pq_delete_any(tw_pq *, tw_event *)
Definition splay.c:341
tw_event * tw_pq_dequeue(tw_pq *)
Definition splay.c:298
tw_stime tw_pq_minimum(tw_pq *)
Definition splay.c:398
unsigned int tw_pq_get_size(tw_pq *)
Definition splay.c:418
tw_pq * tw_pq_create(void)
Definition splay.c:56
double tw_stime
Definition ross-base.h:39
Event Stucture.
Definition ross-types.h:277
Definition splay.c:39