Mercurial > hg > nginx
comparison src/core/ngx_buf.h @ 3119:4c90c9129a82
fix case when the output filter should add incoming buffers
while waiting on file AIO completion
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sun, 13 Sep 2009 06:28:17 +0000 |
parents | 0d253659da12 |
children | 5db098f97e0e 4919fb357a5d |
comparison
equal
deleted
inserted
replaced
3118:6f79fac538b9 | 3119:4c90c9129a82 |
---|---|
87 #if (NGX_HAVE_ALIGNED_DIRECTIO) | 87 #if (NGX_HAVE_ALIGNED_DIRECTIO) |
88 unsigned unaligned:1; | 88 unsigned unaligned:1; |
89 #endif | 89 #endif |
90 unsigned need_in_memory:1; | 90 unsigned need_in_memory:1; |
91 unsigned need_in_temp:1; | 91 unsigned need_in_temp:1; |
92 #if (NGX_HAVE_FILE_AIO) | |
93 unsigned aio:1; | |
94 | |
95 ngx_output_chain_aio_pt aio_handler; | |
96 #endif | |
92 | 97 |
93 off_t alignment; | 98 off_t alignment; |
94 | 99 |
95 ngx_pool_t *pool; | 100 ngx_pool_t *pool; |
96 ngx_int_t allocated; | 101 ngx_int_t allocated; |
97 ngx_bufs_t bufs; | 102 ngx_bufs_t bufs; |
98 ngx_buf_tag_t tag; | 103 ngx_buf_tag_t tag; |
99 | 104 |
100 ngx_output_chain_filter_pt output_filter; | 105 ngx_output_chain_filter_pt output_filter; |
101 void *filter_ctx; | 106 void *filter_ctx; |
102 | |
103 #if (NGX_HAVE_FILE_AIO) | |
104 ngx_output_chain_aio_pt aio; | |
105 #endif | |
106 }; | 107 }; |
107 | 108 |
108 | 109 |
109 typedef struct { | 110 typedef struct { |
110 ngx_chain_t *out; | 111 ngx_chain_t *out; |