Statistics
| Branch: | Tag: | Revision:

sssimulator / EventScheduler / event_scheduler.h @ af271552

History | View | Annotate | Download (720 Bytes)

1
/*
2
 * this is sssim: the simple & stupid simulator
3
 *
4
 *  copyright (c) 2015 luca baldesi
5
 *
6
 *  this is free software; see gpl-3.0.txt
7
 */
8

    
9
#ifndef __EVENT_SCHEDULER_H__
10
#define __EVENT_SCHEDULER_H__ 1
11

    
12
#include <stdint.h>
13
#include "ord_array.h"
14
#include "action_event.h"
15

    
16
struct event_scheduler * event_scheduler_new(const uint32_t size);
17

    
18
void event_scheduler_destroy(struct event_scheduler **es);
19

    
20
int event_scheduler_insert(struct event_scheduler *es, struct action_event * e, double interval);
21

    
22
struct action_event * event_scheduler_pop(struct event_scheduler *es);
23

    
24
uint32_t event_scheduler_queue_length(struct event_scheduler *es);
25

    
26
double event_scheduler_elapsed_time(const struct event_scheduler *es);
27

    
28
#endif