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.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user