comparison src/event/ngx_event_posted.h @ 372:c9fdfccebc49

nginx-0.0.7-2004-06-29-01:03:14 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 28 Jun 2004 21:03:14 +0000
parents 780e93985b93
children 018569a8f09c
comparison
equal deleted inserted replaced
371:780e93985b93 372:c9fdfccebc49
6 #include <ngx_core.h> 6 #include <ngx_core.h>
7 #include <ngx_event.h> 7 #include <ngx_event.h>
8 8
9 9
10 #define ngx_post_event(ev) \ 10 #define ngx_post_event(ev) \
11 if (!ev->posted) { \
11 ev->next = (ngx_event_t *) ngx_posted_events; \ 12 ev->next = (ngx_event_t *) ngx_posted_events; \
12 ngx_posted_events = ev; \ 13 ngx_posted_events = ev; \
13 ev->posted = 1; 14 ev->posted = 1; \
15 }
14 16
15 17
16 void ngx_event_process_posted(ngx_cycle_t *cycle); 18 void ngx_event_process_posted(ngx_cycle_t *cycle);
17 19
18 extern ngx_thread_volatile ngx_event_t *ngx_posted_events; 20 extern ngx_thread_volatile ngx_event_t *ngx_posted_events;