nxt_runtime.h (1182:325b315e48c4) nxt_runtime.h (1254:aae6699f4eee)
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
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
96void nxt_runtime_process_add(nxt_task_t *task, nxt_process_t *process);
97
98nxt_process_t *nxt_runtime_process_find(nxt_runtime_t *rt, nxt_pid_t pid);
99
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
100nxt_process_t *nxt_runtime_process_first(nxt_runtime_t *rt,
101 nxt_lvlhsh_each_t *lhe);
102
103void nxt_runtime_process_release(nxt_runtime_t *rt, nxt_process_t *process);
104
107#define nxt_runtime_process_next(rt, lhe) \
108 nxt_lvlhsh_each(&rt->processes, lhe)
109
105#define nxt_runtime_process_next(rt, lhe) \
106 nxt_lvlhsh_each(&rt->processes, lhe)
107
108nxt_port_t *nxt_runtime_process_port_create(nxt_task_t *task, nxt_runtime_t *rt,
109 nxt_pid_t pid, nxt_port_id_t id, nxt_process_type_t type);
110
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 ---
111void nxt_runtime_port_remove(nxt_task_t *task, nxt_port_t *port);
112
113NXT_EXPORT nxt_port_t *nxt_runtime_port_find(nxt_runtime_t *rt, nxt_pid_t pid,
114 nxt_port_id_t port_id);
115
116
117/* STUB */
118nxt_int_t nxt_runtime_controller_socket(nxt_task_t *task, nxt_runtime_t *rt);

--- 39 unchanged lines hidden ---