comparison src/event/ngx_event.c @ 6016:457ec43dd8d5

Renamed NGX_THREADS to NGX_OLD_THREADS because of deprecation. It's mostly dead code and the original idea of worker threads has been rejected.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 04 Mar 2015 18:26:25 +0300
parents 3f5f0ab59b35
children 466bd63b63d1
comparison
equal deleted inserted replaced
6015:e11a8e7e8e0c 6016:457ec43dd8d5
210 210
211 } else { 211 } else {
212 timer = ngx_event_find_timer(); 212 timer = ngx_event_find_timer();
213 flags = NGX_UPDATE_TIME; 213 flags = NGX_UPDATE_TIME;
214 214
215 #if (NGX_THREADS) 215 #if (NGX_OLD_THREADS)
216 216
217 if (timer == NGX_TIMER_INFINITE || timer > 500) { 217 if (timer == NGX_TIMER_INFINITE || timer > 500) {
218 timer = 500; 218 timer = 500;
219 } 219 }
220 220
720 c[i].write = &cycle->write_events[i]; 720 c[i].write = &cycle->write_events[i];
721 c[i].fd = (ngx_socket_t) -1; 721 c[i].fd = (ngx_socket_t) -1;
722 722
723 next = &c[i]; 723 next = &c[i];
724 724
725 #if (NGX_THREADS) 725 #if (NGX_OLD_THREADS)
726 c[i].lock = 0; 726 c[i].lock = 0;
727 #endif 727 #endif
728 } while (i); 728 } while (i);
729 729
730 cycle->free_connections = next; 730 cycle->free_connections = next;