From 67cd336d88f8a920ea5921936785a1c1553062fb Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 20 Nov 2006 08:51:45 +0000 Subject: slab allocator in shared memory --- src/os/win32/ngx_win32_init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/os/win32/ngx_win32_init.c') diff --git a/src/os/win32/ngx_win32_init.c b/src/os/win32/ngx_win32_init.c index b4ac2b8b5..9c233c7b3 100644 --- a/src/os/win32/ngx_win32_init.c +++ b/src/os/win32/ngx_win32_init.c @@ -53,6 +53,7 @@ ngx_int_t ngx_os_init(ngx_log_t *log) DWORD bytes; SOCKET s; WSADATA wsd; + ngx_uint_t n; SYSTEM_INFO si; /* get Windows version */ @@ -101,6 +102,8 @@ ngx_int_t ngx_os_init(ngx_log_t *log) ngx_ncpu = si.dwNumberOfProcessors; ngx_cacheline_size = NGX_CPU_CACHE_LINE; + for (n = ngx_pagesize; n >>= 1; ngx_pagesize_shift++) { /* void */ } + /* init Winsock */ -- cgit