diff options
| author | Valentin Bartenev <vbart@nginx.com> | 2014-09-01 18:20:03 +0400 |
|---|---|---|
| committer | Valentin Bartenev <vbart@nginx.com> | 2014-09-01 18:20:03 +0400 |
| commit | 2a81e0556611188a1b9b3e1240a06928dcebc1a2 (patch) | |
| tree | 59f0296dff877b77b7f22c0c5955f31014d3c164 /src/event/ngx_event.h | |
| parent | 3ca3f609cb7d9bc5576bf9fb77998cf110b688cb (diff) | |
| download | nginx-2a81e0556611188a1b9b3e1240a06928dcebc1a2.tar.gz nginx-2a81e0556611188a1b9b3e1240a06928dcebc1a2.tar.bz2 | |
Events: removed broken thread support from posted events.
It's mostly dead code. And the idea of thread support for this task has
been deprecated.
Diffstat (limited to 'src/event/ngx_event.h')
| -rw-r--r-- | src/event/ngx_event.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/event/ngx_event.h b/src/event/ngx_event.h index 530c9486c..e9520b667 100644 --- a/src/event/ngx_event.h +++ b/src/event/ngx_event.h @@ -74,10 +74,6 @@ struct ngx_event_s { /* the pending eof reported by kqueue, epoll or in aio chain operation */ unsigned pending_eof:1; -#if !(NGX_THREADS) - unsigned posted_ready:1; -#endif - #if (NGX_WIN32) /* setsockopt(SO_UPDATE_ACCEPT_CONTEXT) was successful */ unsigned accept_context_updated:1; @@ -135,30 +131,6 @@ struct ngx_event_s { unsigned channel:1; unsigned resolver:1; -#if (NGX_THREADS) - - unsigned locked:1; - - unsigned posted_ready:1; - unsigned posted_timedout:1; - unsigned posted_eof:1; - -#if (NGX_HAVE_KQUEUE) - /* the pending errno reported by kqueue */ - int posted_errno; -#endif - -#if (NGX_HAVE_KQUEUE) || (NGX_HAVE_IOCP) - int posted_available; -#else - unsigned posted_available:1; -#endif - - ngx_atomic_t *lock; - ngx_atomic_t *own_lock; - -#endif - /* the links of the posted queue */ ngx_event_t *next; ngx_event_t **prev; @@ -519,7 +491,6 @@ extern ngx_atomic_t *ngx_stat_waiting; #define NGX_UPDATE_TIME 1 #define NGX_POST_EVENTS 2 -#define NGX_POST_THREAD_EVENTS 4 extern sig_atomic_t ngx_event_timer_alarm; |
