comparison src/os/win32/ngx_process_cycle.c @ 3035:f9d97311c652

*) share temporary number between workers *) randomize collision offset
author Igor Sysoev <igor@sysoev.ru>
date Fri, 21 Aug 2009 09:06:35 +0000
parents 56407044c593
children 5c43621c580a
comparison
equal deleted inserted replaced
3034:d7f7aabe5ac2 3035:f9d97311c652
791 ngx_cycle_t *cycle; 791 ngx_cycle_t *cycle;
792 ngx_connection_t *c; 792 ngx_connection_t *c;
793 793
794 cycle = (ngx_cycle_t *) ngx_cycle; 794 cycle = (ngx_cycle_t *) ngx_cycle;
795 795
796 ngx_init_temp_number();
797
798 for (n = 0; ngx_modules[n]; n++) { 796 for (n = 0; ngx_modules[n]; n++) {
799 if (ngx_modules[n]->init_process) { 797 if (ngx_modules[n]->init_process) {
800 if (ngx_modules[n]->init_process(cycle) == NGX_ERROR) { 798 if (ngx_modules[n]->init_process(cycle) == NGX_ERROR) {
801 /* fatal */ 799 /* fatal */
802 exit(2); 800 exit(2);
1022 ngx_single_process_cycle(ngx_cycle_t *cycle) 1020 ngx_single_process_cycle(ngx_cycle_t *cycle)
1023 { 1021 {
1024 ngx_int_t i; 1022 ngx_int_t i;
1025 ngx_tid_t tid; 1023 ngx_tid_t tid;
1026 1024
1027 ngx_init_temp_number();
1028
1029 for (i = 0; ngx_modules[i]; i++) { 1025 for (i = 0; ngx_modules[i]; i++) {
1030 if (ngx_modules[i]->init_process) { 1026 if (ngx_modules[i]->init_process) {
1031 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) { 1027 if (ngx_modules[i]->init_process(cycle) == NGX_ERROR) {
1032 /* fatal */ 1028 /* fatal */
1033 exit(2); 1029 exit(2);