comparison src/core/ngx_resolver.c @ 5820:3377f9459e99

Events: removed broken thread support from posted events. It's mostly dead code. And the idea of thread support for this task has been deprecated.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 01 Sep 2014 18:20:03 +0400
parents 954867a2f0a6
children 7420068c4d4b
comparison
equal deleted inserted replaced
5819:8e7ee4c70a3c 5820:3377f9459e99
3080 3080
3081 uc->connection = c; 3081 uc->connection = c;
3082 3082
3083 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1); 3083 c->number = ngx_atomic_fetch_add(ngx_connection_counter, 1);
3084 3084
3085 #if (NGX_THREADS)
3086
3087 /* TODO: lock event when call completion handler */
3088
3089 rev->lock = &c->lock;
3090 wev->lock = &c->lock;
3091 rev->own_lock = &c->lock;
3092 wev->own_lock = &c->lock;
3093
3094 #endif
3095
3096 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, &uc->log, 0, 3085 ngx_log_debug3(NGX_LOG_DEBUG_EVENT, &uc->log, 0,
3097 "connect to %V, fd:%d #%uA", &uc->server, s, c->number); 3086 "connect to %V, fd:%d #%uA", &uc->server, s, c->number);
3098 3087
3099 rc = connect(s, uc->sockaddr, uc->socklen); 3088 rc = connect(s, uc->sockaddr, uc->socklen);
3100 3089