Mercurial > hg > nginx
changeset 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 | d0a84ae2fb48 |
children | 59fc60585f1e |
files | src/event/ngx_event.h |
diffstat | 1 files changed, 8 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/ngx_event.h Wed May 06 17:04:00 2015 +0300 +++ b/src/event/ngx_event.h Fri May 15 17:15:33 2015 +0300 @@ -68,6 +68,14 @@ 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 @@ /* 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 */