From 668aabac3c492ad1325c09eacadbfdd9c60004b8 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 14 Jul 2017 17:17:15 +0300 Subject: Router: using joint jobs to pass listening socket handlers to worker engines. --- src/nxt_router.h | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/nxt_router.h') 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; -- cgit