]> git.kaiwu.me - nginx.git/commitdiff
Events: ngx_event_t size reduction by grouping bit fields.
authorIgor Sysoev <igor@sysoev.ru>
Fri, 15 May 2015 14:15:33 +0000 (17:15 +0300)
committerIgor Sysoev <igor@sysoev.ru>
Fri, 15 May 2015 14:15:33 +0000 (17:15 +0300)
src/event/ngx_event.h

index 21819dc4db322d2c765a372563b8c812668c2838..855c58df466ebb609d70f3460653abd7b5308b37 100644 (file)
@@ -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 */