mirror of
https://github.com/nginx/nginx.git
synced 2025-06-09 02:42:48 +08:00
Fixed typo in a function name.
This commit is contained in:
parent
2219c566d7
commit
bbfc96c703
@ -44,7 +44,7 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr, u_char *name)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ngx_shmtx_destory(ngx_shmtx_t *mtx)
|
ngx_shmtx_destroy(ngx_shmtx_t *mtx)
|
||||||
{
|
{
|
||||||
#if (NGX_HAVE_POSIX_SEM)
|
#if (NGX_HAVE_POSIX_SEM)
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr, u_char *name)
|
|||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngx_shmtx_destory(mtx);
|
ngx_shmtx_destroy(mtx);
|
||||||
}
|
}
|
||||||
|
|
||||||
mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
|
mtx->fd = ngx_open_file(name, NGX_FILE_RDWR, NGX_FILE_CREATE_OR_OPEN,
|
||||||
@ -232,7 +232,7 @@ ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr, u_char *name)
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
ngx_shmtx_destory(ngx_shmtx_t *mtx)
|
ngx_shmtx_destroy(ngx_shmtx_t *mtx)
|
||||||
{
|
{
|
||||||
if (ngx_close_file(mtx->fd) == NGX_FILE_ERROR) {
|
if (ngx_close_file(mtx->fd) == NGX_FILE_ERROR) {
|
||||||
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, ngx_errno,
|
ngx_log_error(NGX_LOG_ALERT, ngx_cycle->log, ngx_errno,
|
||||||
|
@ -39,7 +39,7 @@ typedef struct {
|
|||||||
|
|
||||||
ngx_int_t ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr,
|
ngx_int_t ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr,
|
||||||
u_char *name);
|
u_char *name);
|
||||||
void ngx_shmtx_destory(ngx_shmtx_t *mtx);
|
void ngx_shmtx_destroy(ngx_shmtx_t *mtx);
|
||||||
ngx_uint_t ngx_shmtx_trylock(ngx_shmtx_t *mtx);
|
ngx_uint_t ngx_shmtx_trylock(ngx_shmtx_t *mtx);
|
||||||
void ngx_shmtx_lock(ngx_shmtx_t *mtx);
|
void ngx_shmtx_lock(ngx_shmtx_t *mtx);
|
||||||
void ngx_shmtx_unlock(ngx_shmtx_t *mtx);
|
void ngx_shmtx_unlock(ngx_shmtx_t *mtx);
|
||||||
|
Loading…
Reference in New Issue
Block a user