blob: e6ac0b2da8191b07e85385e1a38db140c29d284d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#ifndef OPCUT_POOL_H
#define OPCUT_POOL_H
#include <stddef.h>
#include <hat/allocator.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct opcut_pool_t opcut_pool_t;
opcut_pool_t *opcut_pool_create(hat_allocator_t *a, size_t item_size);
void opcut_pool_destroy(opcut_pool_t *pool);
void *opcut_pool_alloc(opcut_pool_t *pool);
void opcut_pool_free(opcut_pool_t *pool, void *item);
#ifdef __cplusplus
}
#endif
#endif
|