Repository URL to install this package:
|
Version:
0.6.1 ▾
|
#ifndef HEAPQ_H
#define HEAPQ_H
#include "meinheld.h"
#include "timer.h"
typedef struct {
TimerObject **heap;
uint32_t size;
uint32_t max;
} heapq_t;
heapq_t* init_queue(void);
void destroy_queue(heapq_t *q);
TimerObject* heappop(heapq_t *q);
int heappush(heapq_t *q, TimerObject *val);
#endif