diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:14 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-07-18 00:21:14 +0300 |
commit | eb675f2d78178b2cdd54d934022f9b739bfa8952 (patch) | |
tree | 0b072c752fff35cd5c4498cded7016a5738caa58 /src/nxt_router.h | |
parent | 47b359388cdf6348238e7fc05770426448049189 (diff) | |
download | unit-eb675f2d78178b2cdd54d934022f9b739bfa8952.tar.gz unit-eb675f2d78178b2cdd54d934022f9b739bfa8952.tar.bz2 |
Port allocation and destroy changed. Worker process stop introduced.
Diffstat (limited to 'src/nxt_router.h')
-rw-r--r-- | src/nxt_router.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nxt_router.h b/src/nxt_router.h index ea7a54bc..5724c192 100644 --- a/src/nxt_router.h +++ b/src/nxt_router.h @@ -69,11 +69,13 @@ typedef struct { struct nxt_app_s { - nxt_thread_mutex_t mutex; - nxt_queue_t ports; + nxt_thread_mutex_t mutex; /* Protects ports queue. */ + nxt_queue_t ports; /* of nxt_port_t.app_link */ + nxt_queue_t requests; /* of nxt_req_conn_link_t */ nxt_str_t name; + uint32_t pending_workers; uint32_t workers; uint32_t max_workers; @@ -123,6 +125,6 @@ typedef struct { void nxt_router_new_port_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg); void nxt_router_conf_data_handler(nxt_task_t *task, nxt_port_recv_msg_t *msg); -void nxt_router_app_remove_port(nxt_port_t *port); +nxt_bool_t nxt_router_app_remove_port(nxt_port_t *port); #endif /* _NXT_ROUTER_H_INCLUDED_ */ |