diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-03-09 18:03:27 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-03-09 18:03:27 +0300 |
commit | 6f2c9acd1841ca20a1388b34aef64e9f00459090 (patch) | |
tree | c0b9c1063ec464027d1ca29a793f6c0b7a6878d5 /src/nxt_master_process.h | |
parent | 5745e4826427155e29c1d520fe77811a0f570689 (diff) | |
download | unit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.gz unit-6f2c9acd1841ca20a1388b34aef64e9f00459090.tar.bz2 |
Processes refactoring.
The cycle has been renamed to the runtime.
Diffstat (limited to 'src/nxt_master_process.h')
-rw-r--r-- | src/nxt_master_process.h | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/nxt_master_process.h b/src/nxt_master_process.h index 8c40b5b3..46c570be 100644 --- a/src/nxt_master_process.h +++ b/src/nxt_master_process.h @@ -4,17 +4,21 @@ * Copyright (C) NGINX, Inc. */ -#ifndef _NXT_UNIX_MASTER_PROCESS_H_INCLUDED_ -#define _NXT_UNIX_MASTER_PROCESS_H_INCLUDED_ +#ifndef _NXT_MASTER_PROCESS_H_INCLUDED_ +#define _NXT_MASTER_PROCESS_H_INCLUDED_ nxt_int_t nxt_master_process_start(nxt_thread_t *thr, nxt_task_t *task, - nxt_cycle_t *cycle); -void nxt_master_stop_worker_processes(nxt_task_t *task, nxt_cycle_t *cycle); -void nxt_worker_process_start(void *data); + nxt_runtime_t *runtime); +void nxt_master_stop_worker_processes(nxt_task_t *task, nxt_runtime_t *runtime); +nxt_int_t nxt_controller_start(nxt_task_t *task, nxt_runtime_t *rt); +nxt_int_t nxt_router_start(nxt_task_t *task, nxt_runtime_t *rt); + +extern nxt_port_handler_t nxt_worker_process_port_handlers[]; extern const nxt_sig_event_t nxt_master_process_signals[]; +extern const nxt_sig_event_t nxt_worker_process_signals[]; -#endif /* _NXT_UNIX_MASTER_PROCESS_H_INCLUDED_ */ +#endif /* _NXT_MASTER_PROCESS_H_INCLUDED_ */ |