summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port_socket.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-02-07 20:04:56 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-02-07 20:04:56 +0300
commit059a8642898a6bd4b47d13a1c1d599cd44af7e1c (patch)
treee3c8c530a04f1ae44777d5ea4fd6901dc55a8ebf /src/nxt_port_socket.c
parente57b95a92333fa7ff558737b0ba2b76894cc0412 (diff)
downloadunit-059a8642898a6bd4b47d13a1c1d599cd44af7e1c.tar.gz
unit-059a8642898a6bd4b47d13a1c1d599cd44af7e1c.tar.bz2
Event engines refactoring.
Diffstat (limited to 'src/nxt_port_socket.c')
-rw-r--r--src/nxt_port_socket.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nxt_port_socket.c b/src/nxt_port_socket.c
index 4dc72d64..5b0c2d43 100644
--- a/src/nxt_port_socket.c
+++ b/src/nxt_port_socket.c
@@ -219,7 +219,7 @@ nxt_port_write_handler(nxt_task_t *task, void *obj, void *data)
link = nxt_queue_first(&port->messages);
if (link == nxt_queue_tail(&port->messages)) {
- nxt_event_fd_block_write(task->thread->engine, &port->socket);
+ nxt_fd_event_block_write(task->thread->engine, &port->socket);
return;
}
@@ -282,8 +282,8 @@ nxt_port_write_handler(nxt_task_t *task, void *obj, void *data)
} while (port->socket.write_ready);
- if (nxt_event_fd_is_disabled(port->socket.write)) {
- nxt_event_fd_enable_write(task->thread->engine, &port->socket);
+ if (nxt_fd_event_is_disabled(port->socket.write)) {
+ nxt_fd_event_enable_write(task->thread->engine, &port->socket);
}
return;
@@ -311,7 +311,7 @@ nxt_port_read_enable(nxt_task_t *task, nxt_port_t *port)
port->socket.read_handler = nxt_port_read_handler;
port->socket.error_handler = nxt_port_error_handler;
- nxt_event_fd_enable_read(task->thread->engine, &port->socket);
+ nxt_fd_event_enable_read(task->thread->engine, &port->socket);
}
@@ -371,7 +371,7 @@ nxt_port_read_handler(nxt_task_t *task, void *obj, void *data)
if (n == NXT_AGAIN) {
nxt_port_buf_free(port, b);
- nxt_event_fd_enable_read(task->thread->engine, &port->socket);
+ nxt_fd_event_enable_read(task->thread->engine, &port->socket);
return;
}