mirror of
https://github.com/nginx/nginx.git
synced 2026-09-01 19:10:52 +00:00
Removed stub implementation of win32 mutexes.
This commit is contained in:
parent
090fb6f3fb
commit
07de3f538b
4 changed files with 0 additions and 74 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue