summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2017-06-23 19:20:08 +0300
committerMax Romanov <max.romanov@nginx.com>2017-06-23 19:20:08 +0300
commit83088a0f4bdbe321c42e7cf0b18e2a9cc897b068 (patch)
tree97ef3d9e5d076f40ed6235d91d25f77921fa8af6 /src/nxt_process.h
parentabe0d333294248ea654a4f8467d946a6b761b9d7 (diff)
downloadunit-83088a0f4bdbe321c42e7cf0b18e2a9cc897b068.tar.gz
unit-83088a0f4bdbe321c42e7cf0b18e2a9cc897b068.tar.bz2
Incoming and outgoing port_mmap arrays are protected with mutexes.
Diffstat (limited to 'src/nxt_process.h')
-rw-r--r--src/nxt_process.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index 32a8d8dc..d0ed7343 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -56,8 +56,10 @@ typedef struct {
nxt_port_id_t last_port_id;
nxt_process_init_t *init;
- nxt_array_t *incoming; /* of nxt_mmap_t */
- nxt_array_t *outgoing; /* of nxt_mmap_t */
+ nxt_thread_mutex_t incoming_mutex;
+ nxt_array_t *incoming; /* of nxt_port_mmap_t */
+ nxt_thread_mutex_t outgoing_mutex;
+ nxt_array_t *outgoing; /* of nxt_port_mmap_t */
nxt_lvlhsh_t connected_ports; /* of nxt_port_t */
} nxt_process_t;