Klaus Demo nginx / 67dbb8b
Merge of r4739: s/ngx_shmtx_destory/ngx_shmtx_destroy/. Maxim Dounin 9 years ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
4343
4444
4545 void
46 ngx_shmtx_destory(ngx_shmtx_t *mtx)
46 ngx_shmtx_destroy(ngx_shmtx_t *mtx)
4747 {
4848 #if (NGX_HAVE_POSIX_SEM)
4949
207207 return NGX_OK;
208208 }
209209
210 ngx_shmtx_destory(mtx);
210 ngx_shmtx_destroy(mtx);
211211 }
212212
213213 mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
231231
232232
233233 void
234 ngx_shmtx_destory(ngx_shmtx_t *mtx)
234 ngx_shmtx_destroy(ngx_shmtx_t *mtx)
235235 {
236236 if (ngx_close_file(mtx->fd) == NGX_FILE_ERROR) {
237237 ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, ngx_errno,
3838
3939 ngx_int_t ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr,
4040 u_char *name);
41 void ngx_shmtx_destory(ngx_shmtx_t *mtx);
41 void ngx_shmtx_destroy(ngx_shmtx_t *mtx);
4242 ngx_uint_t ngx_shmtx_trylock(ngx_shmtx_t *mtx);
4343 void ngx_shmtx_lock(ngx_shmtx_t *mtx);
4444 void ngx_shmtx_unlock(ngx_shmtx_t *mtx);