diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-30 16:47:50 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-30 16:47:50 +0300 |
commit | bb87fa11ca65d1263a32f86d51d1daa89dc11544 (patch) | |
tree | d5e74fee091b15da7ecd058341d49dba304c9822 /src/nxt_event_conn_write.c | |
parent | 952291c93c96c1dc5b63576e0ee034efde998b18 (diff) | |
download | unit-bb87fa11ca65d1263a32f86d51d1daa89dc11544.tar.gz unit-bb87fa11ca65d1263a32f86d51d1daa89dc11544.tar.bz2 |
nxt_event_timer has been renamed to nxt_timer.
Diffstat (limited to '')
-rw-r--r-- | src/nxt_event_conn_write.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nxt_event_conn_write.c b/src/nxt_event_conn_write.c index d72ddc80..1fe7f8e9 100644 --- a/src/nxt_event_conn_write.c +++ b/src/nxt_event_conn_write.c @@ -90,7 +90,7 @@ nxt_event_conn_io_write(nxt_task_t *task, void *obj, void *data) if (sent != 0) { if (c->write_state->autoreset_timer) { - nxt_event_timer_disable(&c->write_timer); + nxt_timer_disable(&c->write_timer); } } @@ -103,7 +103,7 @@ nxt_event_conn_io_write(nxt_task_t *task, void *obj, void *data) * process other recevied events and to get new events. */ c->write_timer.handler = nxt_event_conn_write_timer_handler; - nxt_event_timer_add(engine, &c->write_timer, 0); + nxt_timer_add(engine, &c->write_timer, 0); } else if (ret == NXT_AGAIN) { /* @@ -204,7 +204,7 @@ nxt_event_conn_write_delayed(nxt_event_engine_t *engine, nxt_event_conn_t *c, nxt_event_fd_block_write(engine, &c->socket); c->write_timer.handler = nxt_event_conn_write_timer_handler; - nxt_event_timer_add(engine, &c->write_timer, timer); + nxt_timer_add(engine, &c->write_timer, timer); return 1; } @@ -288,8 +288,8 @@ nxt_event_conn_exponential_approximation(double x) static void nxt_event_conn_write_timer_handler(nxt_task_t *task, void *obj, void *data) { + nxt_timer_t *ev; nxt_event_conn_t *c; - nxt_event_timer_t *ev; ev = obj; |