From 83088a0f4bdbe321c42e7cf0b18e2a9cc897b068 Mon Sep 17 00:00:00 2001 From: Max Romanov Date: Fri, 23 Jun 2017 19:20:08 +0300 Subject: Incoming and outgoing port_mmap arrays are protected with mutexes. --- src/nxt_main.h | 33 ++++++++++++++------------------- 1 file changed, 14 insertions(+), 19 deletions(-) (limited to 'src/nxt_main.h') 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 -typedef struct nxt_thread_s nxt_thread_t; #include #include @@ -36,16 +40,19 @@ typedef struct nxt_thread_s nxt_thread_t; #include #include #include +#include +#include +#include +#include +#include +#include +#include +#include +#include #include #include #include -typedef struct nxt_log_s nxt_log_t; -#include - - -#include -#include #include #include @@ -59,11 +66,8 @@ typedef struct nxt_sockaddr_s nxt_sockaddr_t; #include #include #include -#include #include -#include - 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 -#include - -typedef struct nxt_event_engine_s nxt_event_engine_t; -#include -#include - -typedef struct nxt_thread_pool_s nxt_thread_pool_t; -#include - #include #if (NXT_THREADS) #include -- cgit