comparison src/os/win32/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 HANDLE handle; 19 HANDLE handle;
20 ngx_log_t *log; 20 ngx_log_t *log;
21 ngx_uint_t exists; /* unsigned exists:1; */
21 } ngx_shm_t; 22 } ngx_shm_t;
22 23
23 24
24 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm); 25 ngx_int_t ngx_shm_alloc(ngx_shm_t *shm);
25 void ngx_shm_free(ngx_shm_t *shm); 26 void ngx_shm_free(ngx_shm_t *shm);