summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-07-14 17:17:15 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-07-14 17:17:15 +0300
commit668aabac3c492ad1325c09eacadbfdd9c60004b8 (patch)
tree8320479f58f609282d27ef87e7a0da53fca2b10c /src/nxt_router.h
parentd669045b758effb22e1648a64f2219d0c1b01a9f (diff)
downloadunit-668aabac3c492ad1325c09eacadbfdd9c60004b8.tar.gz
unit-668aabac3c492ad1325c09eacadbfdd9c60004b8.tar.bz2
Router: using joint jobs to pass listening socket handlers to
worker engines.
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r--src/nxt_router.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h
index 76977438..6f7c8d61 100644
--- a/src/nxt_router.h
+++ b/src/nxt_router.h
@@ -35,9 +35,9 @@ typedef struct {
typedef struct {
nxt_event_engine_t *engine;
- nxt_array_t *creating; /* of nxt_work_t */
- nxt_array_t *updating; /* of nxt_work_t */
- nxt_array_t *deleting; /* of nxt_work_t */
+ nxt_array_t *creating; /* of nxt_joint_job_t */
+ nxt_array_t *updating; /* of nxt_joint_job_t */
+ nxt_array_t *deleting; /* of nxt_joint_job_t */
} nxt_router_engine_conf_t;
@@ -63,6 +63,13 @@ typedef struct {
} nxt_router_temp_conf_t;
+typedef struct {
+ nxt_task_t task;
+ nxt_work_t work;
+ nxt_router_temp_conf_t *tmcf;
+} nxt_joint_job_t;
+
+
typedef struct nxt_app_module_s nxt_app_module_t;
typedef struct nxt_app_s nxt_app_t;