2004-04-04 15:32:09 -05:00
|
|
|
#ifndef _NGX_EVENT_POSTED_H_INCLUDED_
|
|
|
|
#define _NGX_EVENT_POSTED_H_INCLUDED_
|
|
|
|
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
#include <ngx_event.h>
|
|
|
|
|
|
|
|
|
|
|
|
#define ngx_post_event(ev) \
|
|
|
|
ev->next = (ngx_event_t *) ngx_posted_events; \
|
|
|
|
ngx_posted_events = ev; \
|
|
|
|
ev->posted = 1;
|
|
|
|
|
|
|
|
|
|
|
|
void ngx_event_process_posted(ngx_cycle_t *cycle);
|
|
|
|
|
|
|
|
extern ngx_thread_volatile ngx_event_t *ngx_posted_events;
|
2004-06-27 13:01:57 -05:00
|
|
|
|
|
|
|
|
2004-04-04 15:32:09 -05:00
|
|
|
#if (NGX_THREADS)
|
2004-06-27 13:01:57 -05:00
|
|
|
ngx_int_t ngx_event_thread_process_posted(ngx_cycle_t *cycle);
|
|
|
|
|
2004-04-04 15:32:09 -05:00
|
|
|
extern ngx_mutex_t *ngx_posted_events_mutex;
|
2004-06-28 11:05:02 -05:00
|
|
|
extern ngx_cond_t *ngx_posted_events_cv;
|
2004-04-04 15:32:09 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _NGX_EVENT_POSTED_H_INCLUDED_ */
|