nxt_runtime.h (314:6cf55ca61038) nxt_runtime.h (343:9fa845db60fb)
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_

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

97 return nxt_runtime_is_type(rt, NXT_PROCESS_MAIN);
98}
99
100
101nxt_process_t *nxt_runtime_process_new(nxt_runtime_t *rt);
102
103nxt_process_t *nxt_runtime_process_get(nxt_runtime_t *rt, nxt_pid_t pid);
104
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_

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

97 return nxt_runtime_is_type(rt, NXT_PROCESS_MAIN);
98}
99
100
101nxt_process_t *nxt_runtime_process_new(nxt_runtime_t *rt);
102
103nxt_process_t *nxt_runtime_process_get(nxt_runtime_t *rt, nxt_pid_t pid);
104
105void nxt_runtime_process_add(nxt_runtime_t *rt, nxt_process_t *process);
105void nxt_runtime_process_add(nxt_task_t *task, nxt_process_t *process);
106
107nxt_process_t *nxt_runtime_process_find(nxt_runtime_t *rt, nxt_pid_t pid);
108
106
107nxt_process_t *nxt_runtime_process_find(nxt_runtime_t *rt, nxt_pid_t pid);
108
109void nxt_runtime_process_remove(nxt_runtime_t *rt, nxt_process_t *process);
109void nxt_runtime_process_remove(nxt_task_t *task, nxt_process_t *process);
110
111nxt_process_t *nxt_runtime_process_first(nxt_runtime_t *rt,
112 nxt_lvlhsh_each_t *lhe);
113
114#define nxt_runtime_process_next(rt, lhe) \
115 nxt_lvlhsh_each(&rt->processes, lhe)
116
117
110
111nxt_process_t *nxt_runtime_process_first(nxt_runtime_t *rt,
112 nxt_lvlhsh_each_t *lhe);
113
114#define nxt_runtime_process_next(rt, lhe) \
115 nxt_lvlhsh_each(&rt->processes, lhe)
116
117
118void nxt_runtime_port_add(nxt_runtime_t *rt, nxt_port_t *port);
118void nxt_runtime_port_add(nxt_task_t *task, nxt_port_t *port);
119
119
120void nxt_runtime_port_remove(nxt_runtime_t *rt, nxt_port_t *port);
120void nxt_runtime_port_remove(nxt_task_t *task, nxt_port_t *port);
121
122nxt_port_t *nxt_runtime_port_find(nxt_runtime_t *rt, nxt_pid_t pid,
123 nxt_port_id_t port_id);
124
125nxt_port_t *nxt_runtime_port_first(nxt_runtime_t *rt,
126 nxt_lvlhsh_each_t *lhe);
127
128#define nxt_runtime_port_next(rt, lhe) \

--- 59 unchanged lines hidden ---
121
122nxt_port_t *nxt_runtime_port_find(nxt_runtime_t *rt, nxt_pid_t pid,
123 nxt_port_id_t port_id);
124
125nxt_port_t *nxt_runtime_port_first(nxt_runtime_t *rt,
126 nxt_lvlhsh_each_t *lhe);
127
128#define nxt_runtime_port_next(rt, lhe) \

--- 59 unchanged lines hidden ---