comparison src/os/unix/ngx_shmem.h @ 2716:d5896f6608e8

move zone name from ngx_shm_zone_t to ngx_shm_t to use Win32 shared memory
author Igor Sysoev <igor@sysoev.ru>
date Thu, 16 Apr 2009 19:25:09 +0000
parents 703978149e70
children b3b8c66bd520
comparison
equal deleted inserted replaced
2715:a5845475a903 2716:d5896f6608e8
11 #include <ngx_config.h> 11 #include <ngx_config.h>
12 #include <ngx_core.h> 12 #include <ngx_core.h>
13 13
14 14
15 typedef struct { 15 typedef struct {
16 u_char *addr; 16 u_char *addr;
17 size_t size; 17 size_t size;
18 ngx_log_t *log; 18 ngx_str_t name;
19 ngx_log_t *log;
19 } ngx_shm_t; 20 } ngx_shm_t;
20 21
21 22
22 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm); 23 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
23 void ngx_shm_free(ngx_shm_t *shm); 24 void ngx_shm_free(ngx_shm_t *shm);