diff options
author | Igor Sysoev <igor@sysoev.ru> | 2015-05-15 17:15:33 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2015-05-15 17:15:33 +0300 |
commit | b55cd3f876b282e25450d3e53f471af736fffeb8 (patch) | |
tree | 97226651ebf9b060fe2543cf4a5c6656e1c56018 | |
parent | 91df4f0746ae61087fb2cb18b3a1de091c4bf8ef (diff) | |
download | nginx-b55cd3f876b282e25450d3e53f471af736fffeb8.tar.gz nginx-b55cd3f876b282e25450d3e53f471af736fffeb8.zip |
Events: ngx_event_t size reduction by grouping bit fields.
-rw-r--r-- | src/event/ngx_event.h | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/event/ngx_event.h b/src/event/ngx_event.h index 21819dc4d..855c58df4 100644 --- a/src/event/ngx_event.h +++ b/src/event/ngx_event.h @@ -68,6 +68,14 @@ struct ngx_event_s { unsigned posted:1; + unsigned closed:1; + + /* to test on worker exit */ + unsigned channel:1; + unsigned resolver:1; + + unsigned cancelable:1; + #if (NGX_WIN32) /* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */ unsigned accept_context_updated:1; @@ -116,15 +124,6 @@ struct ngx_event_s { /* the posted queue */ ngx_queue_t queue; - unsigned closed:1; - - /* to test on worker exit */ - unsigned channel:1; - unsigned resolver:1; - - unsigned cancelable:1; - - #if 0 /* the threads support */ |