Deleted Added
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) Valentin V. Bartenev
5 * Copyright (C) NGINX, Inc.
6 */
7
8#ifndef _NXT_RUNTIME_H_INCLUDED_

--- 79 unchanged lines hidden (view full) ---

88void nxt_runtime_event_engine_free(nxt_runtime_t *rt);
89
90nxt_int_t nxt_runtime_thread_pool_create(nxt_thread_t *thr, nxt_runtime_t *rt,
91 nxt_uint_t max_threads, nxt_nsec_t timeout);
92
93
94nxt_process_t *nxt_runtime_process_new(nxt_runtime_t *rt);
95
96nxt_process_t *nxt_runtime_process_get(nxt_runtime_t *rt, nxt_pid_t pid);
97
98void nxt_runtime_process_add(nxt_task_t *task, nxt_process_t *process);
99
100nxt_process_t *nxt_runtime_process_find(nxt_runtime_t *rt, nxt_pid_t pid);
101
102void nxt_process_use(nxt_task_t *task, nxt_process_t *process, int i);
103
104nxt_process_t *nxt_runtime_process_first(nxt_runtime_t *rt,
105 nxt_lvlhsh_each_t *lhe);
106
107#define nxt_runtime_process_next(rt, lhe) \
108 nxt_lvlhsh_each(&rt->processes, lhe)
109
110
111void nxt_runtime_port_add(nxt_task_t *task, nxt_port_t *port);
112
113void nxt_runtime_port_remove(nxt_task_t *task, nxt_port_t *port);
114
115NXT_EXPORT nxt_port_t *nxt_runtime_port_find(nxt_runtime_t *rt, nxt_pid_t pid,
116 nxt_port_id_t port_id);
117
118
119/* STUB */
120nxt_int_t nxt_runtime_controller_socket(nxt_task_t *task, nxt_runtime_t *rt);

--- 39 unchanged lines hidden ---