comparison src/os/win32/ngx_process_cycle.c @ 6110:16c51e80128c

Removed unused thread-local-storage code.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 26 Mar 2015 14:15:15 +0300
parents d588dda5ec31
children 537259db5af4
comparison
equal deleted inserted replaced
6109:d588dda5ec31 6110:16c51e80128c
251 251
252 252
253 static void 253 static void
254 ngx_process_init(ngx_cycle_t *cycle) 254 ngx_process_init(ngx_cycle_t *cycle)
255 { 255 {
256 ngx_err_t err;
257 ngx_core_conf_t *ccf; 256 ngx_core_conf_t *ccf;
258 257
259 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); 258 ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module);
260 259
261 if (ngx_init_threads(ngx_threads_n, ccf->thread_stack_size, cycle) 260 if (ngx_init_threads(ngx_threads_n, ccf->thread_stack_size, cycle)
262 != NGX_OK) 261 != NGX_OK)
263 { 262 {
264 /* fatal */
265 exit(2);
266 }
267
268 err = ngx_thread_key_create(&ngx_core_tls_key);
269 if (err != 0) {
270 ngx_log_error(NGX_LOG_ALERT, cycle->log, err,
271 ngx_thread_key_create_n " failed");
272 /* fatal */ 263 /* fatal */
273 exit(2); 264 exit(2);
274 } 265 }
275 } 266 }
276 267