Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_process_cycle.c @ 377:41437e4fd9b4
nginx-0.0.7-2004-07-05-19:08:23 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 05 Jul 2004 15:08:23 +0000 |
parents | d0451e402e27 |
children | 73688d5d7fc3 |
comparison
equal
deleted
inserted
replaced
376:d0451e402e27 | 377:41437e4fd9b4 |
---|---|
790 live = 0; | 790 live = 0; |
791 | 791 |
792 for (i = 0; i < ngx_threads_n; i++) { | 792 for (i = 0; i < ngx_threads_n; i++) { |
793 if (ngx_threads[i].state < NGX_THREAD_EXIT) { | 793 if (ngx_threads[i].state < NGX_THREAD_EXIT) { |
794 ngx_cond_signal(ngx_threads[i].cv); | 794 ngx_cond_signal(ngx_threads[i].cv); |
795 live = 1; | 795 |
796 if (ngx_threads[i].cv->tid == -1) { | |
797 ngx_threads[i].state = NGX_THREAD_DONE; | |
798 } else { | |
799 live = 1; | |
800 } | |
796 } | 801 } |
797 | 802 |
798 if (ngx_threads[i].state == NGX_THREAD_EXIT) { | 803 if (ngx_threads[i].state == NGX_THREAD_EXIT) { |
799 ngx_thread_join(ngx_threads[i].tid, NULL); | 804 ngx_thread_join(ngx_threads[i].tid, NULL); |
800 ngx_threads[i].state = NGX_THREAD_DONE; | 805 ngx_threads[i].state = NGX_THREAD_DONE; |