summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_port.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_port.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nxt_port.h b/src/nxt_port.h
index cf30bc92..74d37dcb 100644
--- a/src/nxt_port.h
+++ b/src/nxt_port.h
@@ -168,6 +168,7 @@ struct nxt_port_s {
uint32_t app_pending_responses;
uint32_t app_responses;
+ nxt_queue_t pending_requests;
nxt_port_handler_t handler;
nxt_port_handler_t *data;
@@ -265,4 +266,9 @@ nxt_int_t nxt_port_post(nxt_task_t *task, nxt_port_t *port,
nxt_port_post_handler_t handler, void *data);
void nxt_port_use(nxt_task_t *task, nxt_port_t *port, int i);
+nxt_inline void nxt_port_inc_use(nxt_port_t *port)
+{
+ nxt_atomic_fetch_add(&port->use_count, 1);
+}
+
#endif /* _NXT_PORT_H_INCLUDED_ */