Mercurial > hg > nginx-quic
comparison src/http/ngx_http_busy_lock.h @ 175:e92c2c647c57
nginx-0.0.1-2003-11-05-20:03:41 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 05 Nov 2003 17:03:41 +0000 |
parents | ea464a6c0581 |
children | c0552e5ab567 |
comparison
equal
deleted
inserted
replaced
174:ea464a6c0581 | 175:e92c2c647c57 |
---|---|
6 #include <ngx_core.h> | 6 #include <ngx_core.h> |
7 #include <ngx_http.h> | 7 #include <ngx_http.h> |
8 | 8 |
9 | 9 |
10 typedef struct { | 10 typedef struct { |
11 char *busy; | 11 u_char *busy_mask; |
12 int busy_n; | 12 char *busy; |
13 int busy_n; | |
13 | 14 |
14 int waiting_n; | 15 int waiting_n; |
15 int max_waiting; | 16 int max_waiting; |
16 | 17 |
17 int conn_n; | 18 int conn_n; |
18 int max_conn; | 19 int max_conn; |
19 | 20 |
20 int timeout; | 21 time_t timeout; |
21 | 22 |
22 /* ngx_mutex_t mutex; */ | 23 /* ngx_mutex_t mutex; */ |
23 | 24 |
24 } ngx_http_busy_lock_t; | 25 } ngx_http_busy_lock_t; |
25 | 26 |
26 | 27 |
28 int ngx_http_busy_lock(ngx_http_busy_lock_t *bl, u_char *md5); | |
27 char *ngx_http_set_busy_lock_slot(ngx_conf_t *cf, ngx_command_t *cmd, | 29 char *ngx_http_set_busy_lock_slot(ngx_conf_t *cf, ngx_command_t *cmd, |
28 void *conf); | 30 void *conf); |
29 | 31 |
30 | 32 |
31 #endif /* _NGX_HTTP_BUSY_LOCK_H_INCLUDED_ */ | 33 #endif /* _NGX_HTTP_BUSY_LOCK_H_INCLUDED_ */ |