nxt_sendbuf.c (352:47649fbbcb53) nxt_sendbuf.c (431:5817734dd9b9)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 420 unchanged lines hidden (view full) ---

429
430 nxt_work_queue_add(wq, b->completion_handler, task, b, b->parent);
431
432 b = b->next;
433 }
434
435 return b;
436}
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_main.h>
8

--- 420 unchanged lines hidden (view full) ---

429
430 nxt_work_queue_add(wq, b->completion_handler, task, b, b->parent);
431
432 b = b->next;
433 }
434
435 return b;
436}
437
438
439nxt_buf_t *
440nxt_sendbuf_completion0(nxt_task_t *task, nxt_work_queue_t *wq, nxt_buf_t *b)
441{
442 while (b != NULL) {
443
444 nxt_prefetch(b->next);
445
446 if (nxt_buf_used_size(b) != 0) {
447 break;
448 }
449
450 nxt_work_queue_add(wq, b->completion_handler, task, b, b->parent);
451
452 b = b->next;
453 }
454
455 return b;
456}