Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2015-03-23 13:52:47 +0300
committerRuslan Ermilov <ru@nginx.com>2015-03-23 13:52:47 +0300
commit07de3f538bc78a202f0512150eebed86a6fa31c2 (patch)
tree0eef24f7f3da386f4f3b73e6b6835fe568bf58e5 /src/core/ngx_connection.c
parent090fb6f3fb52336af6e8785c219dae9570f655a7 (diff)
Removed stub implementation of win32 mutexes.
Diffstat (limited to 'src/core/ngx_connection.c')
-rw-r--r--src/core/ngx_connection.c10
1 files changed, 0 insertions, 10 deletions
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;
}