Mercurial > hg > nginx
comparison src/core/ngx_thread_pool.c @ 6041:2097cd49a158
Thread pools: removed unused pointer to memory pool.
No functional changes.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 23 Mar 2015 17:51:21 +0300 |
parents | adaedab1e662 |
children | abde398f34a7 |
comparison
equal
deleted
inserted
replaced
6040:adaedab1e662 | 6041:2097cd49a158 |
---|---|
31 ngx_thread_pool_queue_t queue; | 31 ngx_thread_pool_queue_t queue; |
32 ngx_int_t waiting; | 32 ngx_int_t waiting; |
33 ngx_thread_cond_t cond; | 33 ngx_thread_cond_t cond; |
34 | 34 |
35 ngx_log_t *log; | 35 ngx_log_t *log; |
36 ngx_pool_t *pool; | |
37 | 36 |
38 ngx_str_t name; | 37 ngx_str_t name; |
39 ngx_uint_t threads; | 38 ngx_uint_t threads; |
40 ngx_int_t max_queue; | 39 ngx_int_t max_queue; |
41 | 40 |
127 (void) ngx_thread_mutex_destroy(&tp->mtx, log); | 126 (void) ngx_thread_mutex_destroy(&tp->mtx, log); |
128 return NGX_ERROR; | 127 return NGX_ERROR; |
129 } | 128 } |
130 | 129 |
131 tp->log = log; | 130 tp->log = log; |
132 tp->pool = pool; | |
133 | 131 |
134 err = pthread_attr_init(&attr); | 132 err = pthread_attr_init(&attr); |
135 if (err) { | 133 if (err) { |
136 ngx_log_error(NGX_LOG_ALERT, log, err, | 134 ngx_log_error(NGX_LOG_ALERT, log, err, |
137 "pthread_attr_init() failed"); | 135 "pthread_attr_init() failed"); |