Incoming and outgoing port_mmap arrays are protected with mutexes.

This commit is contained in:
Max Romanov
2017-06-23 19:20:08 +03:00
parent abe0d33329
commit 83088a0f4b
4 changed files with 33 additions and 21 deletions

View File

@@ -1473,6 +1473,9 @@ nxt_runtime_process_new(nxt_runtime_t *rt)
/* TODO each process should have it's own mem_pool for ports allocation */
process->mem_pool = rt->mem_pool;
nxt_thread_mutex_create(&process->incoming_mutex);
nxt_thread_mutex_create(&process->outgoing_mutex);
return process;
}