summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_main.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-03-09 18:03:27 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-03-09 18:03:27 +0300
commit6f2c9acd1841ca20a1388b34aef64e9f00459090 (patch)
treec0b9c1063ec464027d1ca29a793f6c0b7a6878d5 /src/nxt_main.h
parent5745e4826427155e29c1d520fe77811a0f570689 (diff)
downloadunit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.gz
unit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.bz2
Processes refactoring.
The cycle has been renamed to the runtime.
Diffstat (limited to 'src/nxt_main.h')
-rw-r--r--src/nxt_main.h20
1 files changed, 13 insertions, 7 deletions
diff --git a/src/nxt_main.h b/src/nxt_main.h
index 8db1f833..a1a01434 100644
--- a/src/nxt_main.h
+++ b/src/nxt_main.h
@@ -14,13 +14,22 @@
#include <nxt_clang.h>
#include <nxt_types.h>
#include <nxt_time.h>
-#include <nxt_process.h>
+typedef struct nxt_mem_pool_s nxt_mem_pool_t;
+#include <nxt_array.h>
+
+typedef struct nxt_port_s nxt_port_t;
typedef struct nxt_task_s nxt_task_t;
+typedef struct nxt_port_recv_msg_s nxt_port_recv_msg_t;
+typedef void (*nxt_port_handler_t)(nxt_task_t *task, nxt_port_recv_msg_t *msg);
+typedef struct nxt_sig_event_s nxt_sig_event_t;
+typedef struct nxt_runtime_s nxt_runtime_t;
+
+#include <nxt_process.h>
+
typedef struct nxt_thread_s nxt_thread_t;
#include <nxt_thread_id.h>
-typedef struct nxt_mem_pool_s nxt_mem_pool_t;
#include <nxt_mem_pool.h>
#include <nxt_errno.h>
@@ -89,7 +98,6 @@ typedef struct nxt_thread_pool_s nxt_thread_pool_t;
#include <nxt_hash.h>
#include <nxt_sort.h>
-#include <nxt_array.h>
#include <nxt_vector.h>
#include <nxt_list.h>
@@ -110,8 +118,7 @@ typedef struct nxt_event_conn_s nxt_event_conn_t;
#endif
-#define \
-nxt_thread() \
+#define nxt_thread() \
(nxt_thread_t *) nxt_thread_get_data(nxt_thread_context)
nxt_thread_extern_data(nxt_thread_t, nxt_thread_context);
@@ -121,7 +128,6 @@ nxt_thread_extern_data(nxt_thread_t, nxt_thread_context);
#include <nxt_fd_event.h>
-typedef struct nxt_cycle_s nxt_cycle_t;
#include <nxt_port.h>
#if (NXT_THREADS)
#include <nxt_thread_pool.h>
@@ -154,7 +160,7 @@ typedef struct nxt_upstream_source_s nxt_upstream_source_t;
#include <nxt_upstream_source.h>
#include <nxt_http_source.h>
#include <nxt_fastcgi_source.h>
-#include <nxt_cycle.h>
+#include <nxt_runtime.h>
#if (NXT_LIB_UNIT_TEST)