Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_pthread_thread.c @ 577:4d9ea73a627a release-0.3.10
nginx-0.3.10-RELEASE import
*) Change: the "valid_referers" directive and the "$invalid_referer"
variable were moved to the new ngx_http_referer_module from the
ngx_http_rewrite_module.
*) Change: the "$apache_bytes_sent" variable name was changed to
"$body_bytes_sent".
*) Feature: the "$sent_http_..." variables.
*) Feature: the "if" directive supports the "=" and "!=" operations.
*) Feature: the "proxy_pass" directive supports the HTTPS protocol.
*) Feature: the "proxy_set_body" directive.
*) Feature: the "post_action" directive.
*) Feature: the ngx_http_empty_gif_module.
*) Feature: the "worker_cpu_affinity" directive for Linux.
*) Bugfix: the "rewrite" directive did not unescape URI part in
redirect, now it is unescaped except the %00-%25 and %7F-%FF
characters.
*) Bugfix: nginx could not be built by the icc 9.0 compiler.
*) Bugfix: if the SSI was enabled for zero size static file, then the
chunked response was encoded incorrectly.
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 15 Nov 2005 13:30:52 +0000 |
parents | 9c2f3ed7a247 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
576:3e0b61c26426 | 577:4d9ea73a627a |
---|---|
43 } | 43 } |
44 | 44 |
45 | 45 |
46 ngx_int_t | 46 ngx_int_t |
47 ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle) | 47 ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle) |
48 { | 48 { |
49 int err; | 49 int err; |
50 | 50 |
51 max_threads = n; | 51 max_threads = n; |
52 | 52 |
53 err = pthread_attr_init(&thr_attr); | 53 err = pthread_attr_init(&thr_attr); |
80 | 80 |
81 m = ngx_alloc(sizeof(ngx_mutex_t), log); | 81 m = ngx_alloc(sizeof(ngx_mutex_t), log); |
82 if (m == NULL) { | 82 if (m == NULL) { |
83 return NULL; | 83 return NULL; |
84 } | 84 } |
85 | 85 |
86 m->log = log; | 86 m->log = log; |
87 | 87 |
88 err = pthread_mutex_init(&m->mutex, NULL); | 88 err = pthread_mutex_init(&m->mutex, NULL); |
89 | 89 |
90 if (err != 0) { | 90 if (err != 0) { |
200 | 200 |
201 cv = ngx_alloc(sizeof(ngx_cond_t), log); | 201 cv = ngx_alloc(sizeof(ngx_cond_t), log); |
202 if (cv == NULL) { | 202 if (cv == NULL) { |
203 return NULL; | 203 return NULL; |
204 } | 204 } |
205 | 205 |
206 cv->log = log; | 206 cv->log = log; |
207 | 207 |
208 err = pthread_cond_init(&cv->cond, NULL); | 208 err = pthread_cond_init(&cv->cond, NULL); |
209 | 209 |
210 if (err != 0) { | 210 if (err != 0) { |