Apache HTTPD
apr_allocator.h
Go to the documentation of this file.
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef APR_ALLOCATOR_H
18#define APR_ALLOCATOR_H
19
25#include "apr.h"
26#include "apr_errno.h"
27#define APR_WANT_MEMFUNC
28#include "apr_want.h"
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
44
62
64#define APR_MEMNODE_T_SIZE APR_ALIGN_DEFAULT(sizeof(apr_memnode_t))
65
67#define APR_ALLOCATOR_MAX_FREE_UNLIMITED 0
68
76
85
95
104 apr_memnode_t *memnode)
106
116
117#include "apr_pools.h"
118
125/*
126 * XXX: see if we can come up with something a bit better. Currently
127 * you can make a pool an owner, but if the pool doesn't use the allocator
128 * the allocator will never be destroyed.
129 */
133
140
150
151#include "apr_thread_mutex.h"
152
153#if APR_HAS_THREADS
160 apr_thread_mutex_t *mutex)
162
170
171#endif /* APR_HAS_THREADS */
172
175#ifdef __cplusplus
176}
177#endif
178
179#endif /* !APR_ALLOCATOR_H */
APR Error Codes.
APR Thread Mutex Routines.
APR Standard Headers Support.
apr_size_t size
APR_DECLARE(void) apr_allocator_destroy(apr_allocator_t *allocator) __attribute__((nonnull(1)))
Definition apr_pools.h:646
const char int apr_pool_t * pool
Definition apr_cstr.h:84
int apr_status_t
Definition apr_errno.h:44
apr_abortfunc_t apr_allocator_t * allocator
Definition apr_pools.h:208
const char apr_status_t(*) apr_pool_t *poo __attribute__)((nonnull(2, 4)))
Definition apr_pools.h:567
apr_memnode_t * next
apr_uint32_t index
apr_memnode_t ** ref
apr_uint32_t free_index