diff options
author | Max Romanov <max.romanov@nginx.com> | 2020-08-11 19:20:17 +0300 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2020-08-11 19:20:17 +0300 |
commit | 2f3d27fa22d2e5566dfdeddfb6a1f8c927a5c73d (patch) | |
tree | 4c85437f95778115e3f0039b7bf539563374df35 /src/nxt_runtime.c | |
parent | 83595606121a821f9e3cef0f0b7e7fe87eb1e50a (diff) | |
download | unit-2f3d27fa22d2e5566dfdeddfb6a1f8c927a5c73d.tar.gz unit-2f3d27fa22d2e5566dfdeddfb6a1f8c927a5c73d.tar.bz2 |
Process structures refactoring in runtime and libunit.
Generic process-to-process shared memory exchange is no more required. Here,
it is transformed into a router-to-application pattern. The outgoing shared
memory segments collection is now the property of the application structure.
The applications connect to the router only, and the process only needs to group
the ports.
Diffstat (limited to 'src/nxt_runtime.c')
-rw-r--r-- | src/nxt_runtime.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c index c25b93cc..5f4b3e58 100644 --- a/src/nxt_runtime.c +++ b/src/nxt_runtime.c @@ -1377,7 +1377,6 @@ nxt_runtime_process_new(nxt_runtime_t *rt) nxt_queue_init(&process->ports); nxt_thread_mutex_create(&process->incoming.mutex); - nxt_thread_mutex_create(&process->outgoing.mutex); nxt_thread_mutex_create(&process->cp_mutex); process->use_count = 1; @@ -1397,10 +1396,8 @@ nxt_runtime_process_release(nxt_runtime_t *rt, nxt_process_t *process) nxt_assert(process->registered == 0); nxt_port_mmaps_destroy(&process->incoming, 1); - nxt_port_mmaps_destroy(&process->outgoing, 1); nxt_thread_mutex_destroy(&process->incoming.mutex); - nxt_thread_mutex_destroy(&process->outgoing.mutex); nxt_thread_mutex_destroy(&process->cp_mutex); /* processes from nxt_runtime_process_get() have no memory pool */ |