From 07de3f538bc78a202f0512150eebed86a6fa31c2 Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 23 Mar 2015 13:52:47 +0300 Subject: Removed stub implementation of win32 mutexes. --- src/core/ngx_connection.c | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/core') diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c index 9152af3f7..9f8fbc363 100644 --- a/src/core/ngx_connection.c +++ b/src/core/ngx_connection.c @@ -835,8 +835,6 @@ ngx_get_connection(ngx_socket_t s, ngx_log_t *log) return NULL; } - /* ngx_mutex_lock */ - c = ngx_cycle->free_connections; if (c == NULL) { @@ -849,16 +847,12 @@ ngx_get_connection(ngx_socket_t s, ngx_log_t *log) "%ui worker_connections are not enough", ngx_cycle->connection_n); - /* ngx_mutex_unlock */ - return NULL; } ngx_cycle->free_connections = c->data; ngx_cycle->free_connection_n--; - /* ngx_mutex_unlock */ - if (ngx_cycle->files) { ngx_cycle->files[s] = c; } @@ -896,14 +890,10 @@ ngx_get_connection(ngx_socket_t s, ngx_log_t *log) void ngx_free_connection(ngx_connection_t *c) { - /* ngx_mutex_lock */ - c->data = ngx_cycle->free_connections; ngx_cycle->free_connections = c; ngx_cycle->free_connection_n++; - /* ngx_mutex_unlock */ - if (ngx_cycle->files) { ngx_cycle->files[c->fd] = NULL; } -- cgit