Mercurial > hg > nginx-quic
comparison src/core/ngx_palloc.h @ 441:da8c5707af39
nginx-0.1.0-2004-09-28-12:34:51 import; set copyright and remove unused files
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 28 Sep 2004 08:34:51 +0000 |
parents | 9549fc9508e5 |
children | 42d11f017717 |
comparison
equal
deleted
inserted
replaced
440:f390d1775430 | 441:da8c5707af39 |
---|---|
1 | |
2 /* | |
3 * Copyright (C) 2002-2004 Igor Sysoev | |
4 */ | |
5 | |
6 | |
1 #ifndef _NGX_PALLOC_H_INCLUDED_ | 7 #ifndef _NGX_PALLOC_H_INCLUDED_ |
2 #define _NGX_PALLOC_H_INCLUDED_ | 8 #define _NGX_PALLOC_H_INCLUDED_ |
3 | 9 |
4 | 10 |
5 #include <ngx_config.h> | 11 #include <ngx_config.h> |
6 #include <ngx_core.h> | 12 #include <ngx_core.h> |
7 | 13 |
8 | 14 |
9 /* | 15 /* |
10 * NGX_MAX_ALLOC_FROM_POOL should be (ngx_page_size - 1), i.e. 4095 on x86. | 16 * NGX_MAX_ALLOC_FROM_POOL should be (ngx_page_size - 1), i.e. 4095 on x86. |
11 * On FreeBSD 5.x it allows to use zero copy send. | 17 * On FreeBSD 5.x it allows to use the zero copy sending. |
12 * On Windows NT it decreases a number of locked pages in a kernel. | 18 * On Windows NT it decreases a number of locked pages in a kernel. |
13 */ | 19 */ |
14 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) | 20 #define NGX_MAX_ALLOC_FROM_POOL (ngx_pagesize - 1) |
15 | 21 |
16 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) | 22 #define NGX_DEFAULT_POOL_SIZE (16 * 1024) |