Mercurial > hg > nginx-quic
comparison src/os/unix/ngx_shmem.h @ 2720:b3b8c66bd520
support attaching to an existent Win32 shared memory
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Sat, 18 Apr 2009 19:27:28 +0000 |
parents | d5896f6608e8 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
2719:9237cf8b400b | 2720:b3b8c66bd520 |
---|---|
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_str_t name; | 18 ngx_str_t name; |
19 ngx_log_t *log; | 19 ngx_log_t *log; |
20 ngx_uint_t exists; /* unsigned exists:1; */ | |
20 } ngx_shm_t; | 21 } ngx_shm_t; |
21 | 22 |
22 | 23 |
23 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm); | 24 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm); |
24 void ngx_shm_free(ngx_shm_t *shm); | 25 void ngx_shm_free(ngx_shm_t *shm); |