summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2021-01-28 18:32:12 +0300
committerMax Romanov <max.romanov@nginx.com>2021-01-28 18:32:12 +0300
commit46a8c98a1aa6e0c4b86a72b8f8fe47878012afb1 (patch)
treea9a187b79a8de51f45dc99a052d63f8ee13fdae4
parente4e444b82701de0c984a72eb9c2657f72d7171ae (diff)
downloadunit-46a8c98a1aa6e0c4b86a72b8f8fe47878012afb1.tar.gz
unit-46a8c98a1aa6e0c4b86a72b8f8fe47878012afb1.tar.bz2
Removing unused mutex from nxt_process_t.
Diffstat (limited to '')
-rw-r--r--src/nxt_process.h2
-rw-r--r--src/nxt_runtime.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index 7afb8803..4f24b179 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -107,8 +107,6 @@ struct nxt_process_s {
nxt_port_mmaps_t incoming;
- nxt_thread_mutex_t cp_mutex;
-
uint32_t stream;
nxt_mp_t *mem_pool;
diff --git a/src/nxt_runtime.c b/src/nxt_runtime.c
index d9d986da..8a86d38a 100644
--- a/src/nxt_runtime.c
+++ b/src/nxt_runtime.c
@@ -1387,7 +1387,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->cp_mutex);
process->use_count = 1;
@@ -1408,7 +1407,6 @@ nxt_runtime_process_release(nxt_runtime_t *rt, nxt_process_t *process)
nxt_port_mmaps_destroy(&process->incoming, 1);
nxt_thread_mutex_destroy(&process->incoming.mutex);
- nxt_thread_mutex_destroy(&process->cp_mutex);
/* processes from nxt_runtime_process_get() have no memory pool */
if (process->mem_pool != NULL) {