comparison src/core/ngx_cycle.h @ 860:201d017ea470

slab allocator in shared memory
author Igor Sysoev <igor@sysoev.ru>
date Mon, 20 Nov 2006 08:51:45 +0000
parents 3f8a2132b93d
children d1d8cde9aab9
comparison
equal deleted inserted replaced
859:d1e8c59a50ee 860:201d017ea470
19 19
20 #define NGX_DEBUG_POINTS_STOP 1 20 #define NGX_DEBUG_POINTS_STOP 1
21 #define NGX_DEBUG_POINTS_ABORT 2 21 #define NGX_DEBUG_POINTS_ABORT 2
22 22
23 23
24 typedef struct {
25 ngx_shm_t shm;
26 ngx_str_t name;
27 } ngx_shm_zone_t;
28
29
24 struct ngx_cycle_s { 30 struct ngx_cycle_s {
25 void ****conf_ctx; 31 void ****conf_ctx;
26 ngx_pool_t *pool; 32 ngx_pool_t *pool;
27 33
28 ngx_log_t *log; 34 ngx_log_t *log;
30 36
31 ngx_connection_t **files; 37 ngx_connection_t **files;
32 ngx_connection_t *free_connections; 38 ngx_connection_t *free_connections;
33 ngx_uint_t free_connection_n; 39 ngx_uint_t free_connection_n;
34 40
35 ngx_shm_t shm;
36 u_char *shm_last;
37 u_char *shm_end;
38
39 ngx_array_t listening; 41 ngx_array_t listening;
40 ngx_array_t pathes; 42 ngx_array_t pathes;
41 ngx_list_t open_files; 43 ngx_list_t open_files;
44 ngx_list_t shared_memory;
42 45
43 ngx_uint_t connection_n; 46 ngx_uint_t connection_n;
44 ngx_uint_t files_n; 47 ngx_uint_t files_n;
45 48
46 ngx_connection_t *connections; 49 ngx_connection_t *connections;
49 52
50 ngx_cycle_t *old_cycle; 53 ngx_cycle_t *old_cycle;
51 54
52 ngx_str_t conf_file; 55 ngx_str_t conf_file;
53 ngx_str_t root; 56 ngx_str_t root;
57 ngx_str_t lock_file;
54 }; 58 };
55 59
56 60
57 typedef struct { 61 typedef struct {
58 ngx_flag_t daemon; 62 ngx_flag_t daemon;