diff options
author | Igor Sysoev <igor@sysoev.ru> | 2017-01-23 19:56:03 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2017-01-23 19:56:03 +0300 |
commit | de532922d9ab42aa15b40d47c8db53ac2af38500 (patch) | |
tree | d6b7c6b21c7a6e0e3620a3e0c7198e63454d05e3 /src/nxt_cycle.h | |
parent | 16cbf3c076a0aca6d47adaf3f719493674cf2363 (diff) | |
download | unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.gz unit-de532922d9ab42aa15b40d47c8db53ac2af38500.tar.bz2 |
Introducing tasks.
Diffstat (limited to 'src/nxt_cycle.h')
-rw-r--r-- | src/nxt_cycle.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/nxt_cycle.h b/src/nxt_cycle.h index 18c944b4..f2b0e5a4 100644 --- a/src/nxt_cycle.h +++ b/src/nxt_cycle.h @@ -17,7 +17,7 @@ typedef enum { typedef struct nxt_cycle_s nxt_cycle_t; -typedef void (*nxt_cycle_cont_t)(nxt_thread_t *thr, nxt_cycle_t *cycle); +typedef void (*nxt_cycle_cont_t)(nxt_task_t *task, nxt_cycle_t *cycle); struct nxt_cycle_s { @@ -120,9 +120,9 @@ nxt_thread_cycle(void) } -nxt_int_t nxt_cycle_create(nxt_thread_t *thr, nxt_cycle_t *previous, - nxt_cycle_cont_t start, nxt_str_t *config_name, nxt_bool_t test_config); -void nxt_cycle_quit(nxt_thread_t *thr, nxt_cycle_t *cycle); +nxt_int_t nxt_cycle_create(nxt_thread_t *thr, nxt_task_t *task, + nxt_cycle_t *previous, nxt_cycle_cont_t start, nxt_str_t *config_name); +void nxt_cycle_quit(nxt_task_t *task, nxt_cycle_t *cycle); void nxt_cycle_event_engine_free(nxt_cycle_t *cycle); @@ -138,8 +138,7 @@ nxt_int_t nxt_cycle_pid_file_create(nxt_file_name_t *pid_file, nxt_bool_t test); nxt_listen_socket_t *nxt_cycle_listen_socket_add(nxt_cycle_t *cycle, nxt_sockaddr_t *sa); -nxt_int_t nxt_cycle_listen_sockets_enable(nxt_thread_t *thr, - nxt_cycle_t *cycle); +nxt_int_t nxt_cycle_listen_sockets_enable(nxt_task_t *task, nxt_cycle_t *cycle); nxt_file_t *nxt_cycle_log_file_add(nxt_cycle_t *cycle, nxt_str_t *name); nxt_int_t nxt_cycle_shm_zone_add(nxt_cycle_t *cycle, nxt_str_t *name, |