Mercurial > hg > nginx
comparison src/core/ngx_file.h @ 3035:f9d97311c652
*) share temporary number between workers
*) randomize collision offset
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Fri, 21 Aug 2009 09:06:35 +0000 |
parents | 8101d9101ed8 |
children | 6060225e9261 |
comparison
equal
deleted
inserted
replaced
3034:d7f7aabe5ac2 | 3035:f9d97311c652 |
---|---|
127 ngx_int_t ngx_ext_rename_file(ngx_str_t *src, ngx_str_t *to, | 127 ngx_int_t ngx_ext_rename_file(ngx_str_t *src, ngx_str_t *to, |
128 ngx_ext_rename_file_t *ext); | 128 ngx_ext_rename_file_t *ext); |
129 ngx_int_t ngx_copy_file(u_char *from, u_char *to, ngx_copy_file_t *cf); | 129 ngx_int_t ngx_copy_file(u_char *from, u_char *to, ngx_copy_file_t *cf); |
130 ngx_int_t ngx_walk_tree(ngx_tree_ctx_t *ctx, ngx_str_t *tree); | 130 ngx_int_t ngx_walk_tree(ngx_tree_ctx_t *ctx, ngx_str_t *tree); |
131 | 131 |
132 void ngx_init_temp_number(void); | |
133 ngx_atomic_uint_t ngx_next_temp_number(ngx_uint_t collision); | 132 ngx_atomic_uint_t ngx_next_temp_number(ngx_uint_t collision); |
134 | 133 |
135 char *ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 134 char *ngx_conf_set_path_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
136 char *ngx_conf_merge_path_value(ngx_conf_t *cf, ngx_path_t **path, | 135 char *ngx_conf_merge_path_value(ngx_conf_t *cf, ngx_path_t **path, |
137 ngx_path_t *prev, ngx_path_init_t *init); | 136 ngx_path_t *prev, ngx_path_init_t *init); |
138 char *ngx_conf_set_access_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); | 137 char *ngx_conf_set_access_slot(ngx_conf_t *cf, ngx_command_t *cmd, void *conf); |
139 | 138 |
140 | 139 |
140 extern ngx_atomic_t *ngx_temp_number; | |
141 extern ngx_atomic_int_t ngx_random_number; | |
142 | |
143 | |
141 #endif /* _NGX_FILE_H_INCLUDED_ */ | 144 #endif /* _NGX_FILE_H_INCLUDED_ */ |