ourfor / blog

利用GitHub的Issues记录
https://github.com/ourfor/blog/issues
1 stars 0 forks source link

Nginx源码阅读 #104

Open ourfor opened 1 year ago

ourfor commented 1 year ago

Nginx里面处理事件是通过调用ngx_process_events这个宏函数,这个宏定义如下

#define ngx_process_events   ngx_event_actions.process_events

然后,可以看到ngx_event_actions是一个类型为ngx_event_actions_t的全局变量

不同系统的实现不一样,具体的实现在src\event\modules目录下面