Introducing process use counter.

This helps to decouple process removal from port memory pool cleanups.
This commit is contained in:
Max Romanov
2017-10-04 15:02:11 +03:00
parent f869bf1b02
commit e44401a0bb
6 changed files with 54 additions and 40 deletions

View File

@@ -106,7 +106,7 @@ void nxt_runtime_process_add(nxt_task_t *task, nxt_process_t *process);
nxt_process_t *nxt_runtime_process_find(nxt_runtime_t *rt, nxt_pid_t pid);
void nxt_runtime_process_remove(nxt_task_t *task, nxt_process_t *process);
void nxt_process_use(nxt_task_t *task, nxt_process_t *process, int i);
nxt_process_t *nxt_runtime_process_first(nxt_runtime_t *rt,
nxt_lvlhsh_each_t *lhe);