comparison src/event/ngx_event.h @ 6145:0b8f6f75245d

Events: ngx_event_t size reduction by grouping bit fields.
author Igor Sysoev <igor@sysoev.ru>
date Fri, 15 May 2015 17:15:33 +0300
parents adba26ff70b5
children 8f038068f4bc
comparison
equal deleted inserted replaced
6144:d0a84ae2fb48 6145:0b8f6f75245d
65 65
66 /* the pending eof reported by kqueue, epoll or in aio chain operation */ 66 /* the pending eof reported by kqueue, epoll or in aio chain operation */
67 unsigned pending_eof:1; 67 unsigned pending_eof:1;
68 68
69 unsigned posted:1; 69 unsigned posted:1;
70
71 unsigned closed:1;
72
73 /* to test on worker exit */
74 unsigned channel:1;
75 unsigned resolver:1;
76
77 unsigned cancelable:1;
70 78
71 #if (NGX_WIN32) 79 #if (NGX_WIN32)
72 /* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */ 80 /* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */
73 unsigned accept_context_updated:1; 81 unsigned accept_context_updated:1;
74 #endif 82 #endif
114 ngx_rbtree_node_t timer; 122 ngx_rbtree_node_t timer;
115 123
116 /* the posted queue */ 124 /* the posted queue */
117 ngx_queue_t queue; 125 ngx_queue_t queue;
118 126
119 unsigned closed:1;
120
121 /* to test on worker exit */
122 unsigned channel:1;
123 unsigned resolver:1;
124
125 unsigned cancelable:1;
126
127
128 #if 0 127 #if 0
129 128
130 /* the threads support */ 129 /* the threads support */
131 130
132 /* 131 /*