rename ngx_event_actions_dy to ngx_ff_host_event_actions

This commit is contained in:
chenwei 2017-12-09 15:02:13 +08:00
parent 142257e3b6
commit 590bcd338b
3 changed files with 6 additions and 6 deletions

View File

@ -746,7 +746,7 @@ ngx_ff_start_worker_channel(ngx_cycle_t *cycle, ngx_fd_t fd,
return NGX_OK; return NGX_OK;
} }
ngx_event_actions_t ngx_event_actions_dy = { ngx_event_actions_t ngx_ff_host_event_actions = {
ngx_ff_epoll_add_event, /* add an event */ ngx_ff_epoll_add_event, /* add an event */
ngx_ff_epoll_del_event, /* delete an event */ ngx_ff_epoll_del_event, /* delete an event */
ngx_ff_epoll_add_event, /* enable an event */ ngx_ff_epoll_add_event, /* enable an event */

View File

@ -566,7 +566,7 @@ ngx_timer_signal_handler(int signo)
#if (NGX_HAVE_FSTACK) #if (NGX_HAVE_FSTACK)
extern ngx_event_actions_t ngx_event_actions_dy; extern ngx_event_actions_t ngx_ff_host_event_actions;
#endif #endif
@ -636,7 +636,7 @@ ngx_event_process_init(ngx_cycle_t *cycle)
} }
#if (NGX_HAVE_FSTACK) #if (NGX_HAVE_FSTACK)
if (ngx_event_actions_dy.init(cycle, ngx_timer_resolution) != NGX_OK) { if (ngx_ff_host_event_actions.init(cycle, ngx_timer_resolution) != NGX_OK) {
/* fatal */ /* fatal */
exit(2); exit(2);
} }

View File

@ -203,7 +203,7 @@ extern ngx_event_actions_t ngx_event_actions;
extern ngx_uint_t ngx_use_epoll_rdhup; extern ngx_uint_t ngx_use_epoll_rdhup;
#endif #endif
#if (NGX_HAVE_FSTACK) #if (NGX_HAVE_FSTACK)
extern ngx_event_actions_t ngx_event_actions_dy; extern ngx_event_actions_t ngx_ff_host_event_actions;
#endif #endif
/* /*
@ -418,7 +418,7 @@ extern ngx_event_actions_t ngx_event_actions_dy;
static inline ngx_int_t static inline ngx_int_t
ngx_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) { ngx_add_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) {
if (1 == ev->belong_to_host) { if (1 == ev->belong_to_host) {
return ngx_event_actions_dy.add(ev, event, flags); return ngx_ff_host_event_actions.add(ev, event, flags);
} else { } else {
return ngx_event_actions.add(ev, event, flags); return ngx_event_actions.add(ev, event, flags);
} }
@ -427,7 +427,7 @@ extern ngx_event_actions_t ngx_event_actions_dy;
static inline ngx_int_t static inline ngx_int_t
ngx_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) { ngx_del_event(ngx_event_t *ev, ngx_int_t event, ngx_uint_t flags) {
if (1 == ev->belong_to_host) { if (1 == ev->belong_to_host) {
return ngx_event_actions_dy.del(ev, event, flags); return ngx_ff_host_event_actions.del(ev, event, flags);
} else { } else {
return ngx_event_actions.del(ev, event, flags); return ngx_event_actions.del(ev, event, flags);
} }