diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-23 19:56:03 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-23 19:56:03 +0300 |
commit | de532922d9ab42aa15b40d47c8db53ac2af38500 (patch) | |
tree | d6b7c6b21c7a6e0e3620a3e0c7198e63454d05e3 /src/nxt_buf.c | |
parent | 16cbf3c076a0aca6d47adaf3f719493674cf2363 (diff) | |
download | unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.gz unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.bz2 |
Introducing tasks.
Diffstat (limited to 'src/nxt_buf.c')
-rw-r--r-- | src/nxt_buf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_buf.c b/src/nxt_buf.c index 4789c0c7..88444a3d 100644 --- a/src/nxt_buf.c +++ b/src/nxt_buf.c @@ -7,7 +7,7 @@ #include <nxt_main.h> -static void nxt_buf_completion(nxt_thread_t *thr, void *obj, void *data); +static void nxt_buf_completion(nxt_task_t *task, void *obj, void *data); nxt_buf_t * @@ -144,7 +144,7 @@ nxt_buf_chain_length(nxt_buf_t *b) static void -nxt_buf_completion(nxt_thread_t *thr, void *obj, void *data) +nxt_buf_completion(nxt_task_t *task, void *obj, void *data) { nxt_buf_t *b, *parent; nxt_mem_pool_t *mp; @@ -152,20 +152,20 @@ nxt_buf_completion(nxt_thread_t *thr, void *obj, void *data) b = obj; parent = data; - nxt_log_debug(thr->log, "buf completion: %p %p", b, b->mem.start); + nxt_debug(task, "buf completion: %p %p", b, b->mem.start); mp = b->data; nxt_buf_free(mp, b); if (parent != NULL) { - nxt_log_debug(thr->log, "parent retain:%uD", parent->retain); + nxt_debug(task, "parent retain:%uD", parent->retain); parent->retain--; if (parent->retain == 0) { parent->mem.pos = parent->mem.free; - parent->completion_handler(thr, parent, parent->parent); + parent->completion_handler(task, parent, parent->parent); } } } |