2006-02-02 02:22:15 +08:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) Igor Sysoev
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2006-09-15 18:25:32 +08:00
|
|
|
#ifndef _NGX_SHMEM_H_INCLUDED_
|
|
|
|
#define _NGX_SHMEM_H_INCLUDED_
|
2006-02-02 02:22:15 +08:00
|
|
|
|
|
|
|
|
|
|
|
#include <ngx_config.h>
|
|
|
|
#include <ngx_core.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
2009-04-19 03:27:28 +08:00
|
|
|
u_char *addr;
|
|
|
|
size_t size;
|
|
|
|
ngx_str_t name;
|
|
|
|
HANDLE handle;
|
|
|
|
ngx_log_t *log;
|
|
|
|
ngx_uint_t exists; /* unsigned exists:1; */
|
2006-02-02 02:22:15 +08:00
|
|
|
} ngx_shm_t;
|
|
|
|
|
|
|
|
|
|
|
|
ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
|
|
|
|
void ngx_shm_free(ngx_shm_t *shm);
|
|
|
|
|
|
|
|
|
2006-09-15 18:25:32 +08:00
|
|
|
#endif /* _NGX_SHMEM_H_INCLUDED_ */
|