summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_buf.h
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2019-11-14 19:29:00 +0300
committerAndrei Belov <defan@nginx.com>2019-11-14 19:29:00 +0300
commit7630539c44fcb188bba03a65af34e952a81f2f38 (patch)
tree2c80f0cd315cae8079a39ba98ed89e02b5e1931a /src/nxt_buf.h
parent70c9f18b6e8b25850bce8eb1edba4d100c3e55d2 (diff)
parent0a27f137de776925a24406cf6961c550824c63a0 (diff)
downloadunit-7630539c44fcb188bba03a65af34e952a81f2f38.tar.gz
unit-7630539c44fcb188bba03a65af34e952a81f2f38.tar.bz2
Merged with the default branch.1.13.0-1
Diffstat (limited to 'src/nxt_buf.h')
-rw-r--r--src/nxt_buf.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/nxt_buf.h b/src/nxt_buf.h
index 9c22d650..25e8499a 100644
--- a/src/nxt_buf.h
+++ b/src/nxt_buf.h
@@ -77,17 +77,17 @@ struct nxt_buf_s {
uint32_t retain;
- uint8_t is_file; /* 1 bit */
-
- uint16_t is_mmap:1;
- uint16_t is_port_mmap:1;
-
- uint16_t is_sync:1;
- uint16_t is_nobuf:1;
- uint16_t is_flush:1;
- uint16_t is_last:1;
- uint16_t is_port_mmap_sent:1;
- uint16_t is_ts:1;
+ uint8_t cache_hint;
+
+ uint8_t is_file:1;
+ uint8_t is_mmap:1;
+ uint8_t is_port_mmap:1;
+ uint8_t is_sync:1;
+ uint8_t is_nobuf:1;
+ uint8_t is_flush:1;
+ uint8_t is_last:1;
+ uint8_t is_port_mmap_sent:1;
+ uint8_t is_ts:1;
nxt_buf_mem_t mem;
@@ -250,6 +250,7 @@ NXT_EXPORT nxt_buf_t *nxt_buf_sync_alloc(nxt_mp_t *mp, nxt_uint_t flags);
NXT_EXPORT nxt_int_t nxt_buf_ts_handle(nxt_task_t *task, void *obj, void *data);
+NXT_EXPORT void nxt_buf_parent_completion(nxt_task_t *task, nxt_buf_t *parent);
NXT_EXPORT nxt_buf_t *nxt_buf_make_plain(nxt_mp_t *mp, nxt_buf_t *src,
size_t size);