summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_event_conn.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-03-09 18:03:27 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-03-09 18:03:27 +0300
commit6f2c9acd1841ca20a1388b34aef64e9f00459090 (patch)
treec0b9c1063ec464027d1ca29a793f6c0b7a6878d5 /src/nxt_event_conn.h
parent5745e4826427155e29c1d520fe77811a0f570689 (diff)
downloadunit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.gz
unit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.bz2
Processes refactoring.
The cycle has been renamed to the runtime.
Diffstat (limited to 'src/nxt_event_conn.h')
-rw-r--r--src/nxt_event_conn.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nxt_event_conn.h b/src/nxt_event_conn.h
index 73415cfe..30d4fedc 100644
--- a/src/nxt_event_conn.h
+++ b/src/nxt_event_conn.h
@@ -65,7 +65,7 @@ typedef struct {
/*
* The write() is an interface to write a buffer chain with a given rate
- * limit. It calls write_chunk() in a cycle and handles write event timer.
+ * limit. It calls write_chunk() in a loop and handles write event timer.
*/
nxt_work_handler_t write;
@@ -175,7 +175,7 @@ typedef struct {
nxt_task_t task;
uint32_t ready;
- uint32_t batch0;
+ uint32_t batch;
/* An accept() interface is cached to minimize memory accesses. */
nxt_work_handler_t accept;
@@ -299,13 +299,13 @@ NXT_EXPORT void nxt_event_conn_job_sendfile(nxt_task_t *task,
c->socket.task, c, c->socket.data)
-#define nxt_event_conn_read(e, c) \
+#define nxt_event_conn_read(engine, c) \
do { \
- nxt_event_engine_t *engine = e; \
+ nxt_event_engine_t *e = engine; \
\
- c->socket.read_work_queue = &engine->read_work_queue; \
+ c->socket.read_work_queue = &e->read_work_queue; \
\
- nxt_work_queue_add(&engine->read_work_queue, c->io->read, \
+ nxt_work_queue_add(&e->read_work_queue, c->io->read, \
c->socket.task, c, c->socket.data); \
} while (0)