aboutsummaryrefslogtreecommitdiff
path: root/include/bh/internal/queue.h
blob: 04a5568412c7cfff99b3ae50c5016d9f6e8b0bfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef BH_INTERNAL_QUEUE_H
#define BH_INTERNAL_QUEUE_H

#include "bh.h"
#include <bh/queue.h>

struct bh_queue_s
{
    void **data;
    size_t size;
    size_t head;
    size_t tail;
    size_t capacity;
};

void bh_queue_init(bh_queue_t *queue);

void bh_queue_destroy(bh_queue_t *queue);

#endif /* BH_INTERNAL_QUEUE_H */