Mercurial > hg > nginx
comparison src/core/ngx_slab.h @ 357:e260514b9ad4
nginx-0.0.7-2004-06-16-23:36:07 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 16 Jun 2004 19:36:07 +0000 |
parents | |
children | da8c5707af39 |
comparison
equal
deleted
inserted
replaced
356:2e3cbc1bbe3c | 357:e260514b9ad4 |
---|---|
1 #ifndef _NGX_SLAB_H_INCLUDED_ | |
2 #define _NGX_SLAB_H_INCLUDED_ | |
3 | |
4 | |
5 #include <ngx_config.h> | |
6 #include <ngx_core.h> | |
7 | |
8 | |
9 typedef struct ngx_free_slab_s ngx_free_slab_t; | |
10 | |
11 typedef struct ngx_free_slab_s { | |
12 ngx_free_slab_t *next; | |
13 } | |
14 | |
15 | |
16 typedef struct ngx_slab_block_s ngx_slab_block_t; | |
17 | |
18 typedef struct ngx_slab_block_s { | |
19 ngx_free_slab_t *free; | |
20 ngx_slab_buf_t *next; | |
21 size_t color; | |
22 }; | |
23 | |
24 | |
25 typedef struct { | |
26 ngx_slab_buf_t *blocks; | |
27 size_t size; | |
28 | |
29 void *start; | |
30 uint32_t map; | |
31 | |
32 ngx_log_t *log; | |
33 ngx_free_pool_t free; | |
34 } ngx_slab_pool_t; | |
35 | |
36 | |
37 #endif /* _NGX_SLAB_H_INCLUDED_ */ |