mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 17:52:38 +08:00
Events: ngx_event_t size reduction by grouping bit fields.
This commit is contained in:
parent
91df4f0746
commit
b55cd3f876
@ -68,6 +68,14 @@ struct ngx_event_s {
|
|||||||
|
|
||||||
unsigned posted:1;
|
unsigned posted:1;
|
||||||
|
|
||||||
|
unsigned closed:1;
|
||||||
|
|
||||||
|
/* to test on worker exit */
|
||||||
|
unsigned channel:1;
|
||||||
|
unsigned resolver:1;
|
||||||
|
|
||||||
|
unsigned cancelable:1;
|
||||||
|
|
||||||
#if (NGX_WIN32)
|
#if (NGX_WIN32)
|
||||||
/* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */
|
/* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */
|
||||||
unsigned accept_context_updated:1;
|
unsigned accept_context_updated:1;
|
||||||
@ -116,15 +124,6 @@ struct ngx_event_s {
|
|||||||
/* the posted queue */
|
/* the posted queue */
|
||||||
ngx_queue_t queue;
|
ngx_queue_t queue;
|
||||||
|
|
||||||
unsigned closed:1;
|
|
||||||
|
|
||||||
/* to test on worker exit */
|
|
||||||
unsigned channel:1;
|
|
||||||
unsigned resolver:1;
|
|
||||||
|
|
||||||
unsigned cancelable:1;
|
|
||||||
|
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
||||||
/* the threads support */
|
/* the threads support */
|
||||||
|
Loading…
Reference in New Issue
Block a user