summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main.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_main.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_main.h')
-rw-r--r--src/nxt_main.h33
1 files changed, 14 insertions, 19 deletions
diff --git a/src/nxt_main.h b/src/nxt_main.h
index 4b9a9036..0a7c1469 100644
--- a/src/nxt_main.h
+++ b/src/nxt_main.h
@@ -25,9 +25,13 @@ typedef struct nxt_sig_event_s nxt_sig_event_t;
typedef struct nxt_runtime_s nxt_runtime_t;
typedef uint16_t nxt_port_id_t;
+typedef struct nxt_thread_s nxt_thread_t;
+typedef struct nxt_event_engine_s nxt_event_engine_t;
+typedef struct nxt_log_s nxt_log_t;
+typedef struct nxt_thread_pool_s nxt_thread_pool_t;
+
#include <nxt_queue.h>
-typedef struct nxt_thread_s nxt_thread_t;
#include <nxt_thread_id.h>
#include <nxt_errno.h>
@@ -36,16 +40,19 @@ typedef struct nxt_thread_s nxt_thread_t;
#include <nxt_random.h>
#include <nxt_string.h>
#include <nxt_lvlhsh.h>
+#include <nxt_atomic.h>
+#include <nxt_spinlock.h>
+#include <nxt_work_queue.h>
+#include <nxt_log.h>
+#include <nxt_thread_time.h>
+#include <nxt_rbtree.h>
+#include <nxt_timer.h>
+#include <nxt_fiber.h>
+#include <nxt_thread.h>
#include <nxt_process.h>
#include <nxt_utf8.h>
#include <nxt_file_name.h>
-typedef struct nxt_log_s nxt_log_t;
-#include <nxt_log.h>
-
-
-#include <nxt_atomic.h>
-#include <nxt_rbtree.h>
#include <nxt_sprintf.h>
#include <nxt_parse.h>
@@ -59,11 +66,8 @@ typedef struct nxt_sockaddr_s nxt_sockaddr_t;
#include <nxt_malloc.h>
#include <nxt_mem_map.h>
#include <nxt_socket.h>
-#include <nxt_spinlock.h>
#include <nxt_dyld.h>
-#include <nxt_work_queue.h>
-
typedef void *(*nxt_mem_proto_alloc_t)(void *pool, size_t size);
typedef void (*nxt_mem_proto_free_t)(void *pool, void *p);
@@ -75,15 +79,6 @@ typedef struct {
#include <nxt_mem_zone.h>
-#include <nxt_thread_time.h>
-
-typedef struct nxt_event_engine_s nxt_event_engine_t;
-#include <nxt_timer.h>
-#include <nxt_fiber.h>
-
-typedef struct nxt_thread_pool_s nxt_thread_pool_t;
-#include <nxt_thread.h>
-
#include <nxt_signal.h>
#if (NXT_THREADS)
#include <nxt_semaphore.h>