Router: using joint jobs to pass listening socket handlers to

worker engines.
This commit is contained in:
Igor Sysoev
2017-07-14 17:17:15 +03:00
parent d669045b75
commit 668aabac3c
2 changed files with 75 additions and 78 deletions

View File

@@ -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;