A brief file description. More...
#include "libts.h"
Go to the source code of this file.
Data Structures | |
struct | ProxyAllocator |
Defines | |
#define | THREAD_ALLOC(_a, _t) thread_alloc(::_a, _t->_a) |
#define | THREAD_ALLOC_INIT(_a, _t) thread_alloc_init(::_a, _t->_a) |
#define | THREAD_FREE(_p, _a, _t) |
Functions | |
template<class C > | |
C * | thread_alloc (ClassAllocator< C > &a, ProxyAllocator &l) |
template<class C > | |
C * | thread_alloc_init (ClassAllocator< C > &a, ProxyAllocator &l) |
template<class C > | |
void | thread_free (ClassAllocator< C > &a, C *p) |
static void | thread_free (Allocator &a, void *p) |
template<class C > | |
void | thread_freeup (ClassAllocator< C > &a, ProxyAllocator &l) |
void * | thread_alloc (Allocator &a, ProxyAllocator &l) |
void | thread_freeup (Allocator &a, ProxyAllocator &l) |
Variables | |
int | thread_freelist_size |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file I_ProxyAllocator.h.
#define THREAD_ALLOC | ( | _a, | ||
_t | ||||
) | thread_alloc(::_a, _t->_a) |
Definition at line 107 of file I_ProxyAllocator.h.
Referenced by UnixNetProcessor::allocate_vc(), SSLNetProcessor::allocate_vc(), new_CacheVC(), new_empty_MIOBuffer_internal(), new_EvacuationBlock(), new_HdrHeap(), new_HdrStrHeap(), new_IOBufferBlock_internal(), new_IOBufferData_internal(), new_MIOBuffer_internal(), OpenDir::open_write(), RamCacheLRU::put(), and RamCacheCLFUS::put().
#define THREAD_ALLOC_INIT | ( | _a, | ||
_t | ||||
) | thread_alloc_init(::_a, _t->_a) |
Definition at line 108 of file I_ProxyAllocator.h.
Referenced by HttpSessionAccept::accept(), and HttpSM::state_http_server_open().
#define THREAD_FREE | ( | _p, | ||
_a, | ||||
_t | ||||
) |
do { \ (void)_t; \ thread_free(::_a, _p); \ } while (0)
Definition at line 118 of file I_ProxyAllocator.h.
Referenced by OpenDir::close_write(), RamCacheCLFUS::destroy(), HttpServerSession::destroy(), HttpClientSession::destroy(), HdrHeap::destroy(), UnixNetVConnection::free(), SSLNetVConnection::free(), IOBufferBlock::free(), IOBufferData::free(), HdrStrHeap::free(), free_CacheVC(), free_empty_MIOBuffer(), free_EvacuationBlock(), free_MIOBuffer(), RamCacheLRU::remove(), and RamCacheCLFUS::tick().
C* thread_alloc | ( | ClassAllocator< C > & | a, | |
ProxyAllocator & | l | |||
) | [inline] |
Definition at line 48 of file I_ProxyAllocator.h.
References ClassAllocator< C >::alloc(), ProxyAllocator::allocated, ProxyAllocator::freelist, ClassAllocator< C >::proto, and ClassAllocator< C >::typeObject.
void* thread_alloc | ( | Allocator & | a, | |
ProxyAllocator & | l | |||
) |
Definition at line 28 of file ProxyAllocator.cc.
References Allocator::alloc_void(), ProxyAllocator::allocated, and ProxyAllocator::freelist.
C* thread_alloc_init | ( | ClassAllocator< C > & | a, | |
ProxyAllocator & | l | |||
) | [inline] |
Definition at line 64 of file I_ProxyAllocator.h.
References ClassAllocator< C >::alloc(), ProxyAllocator::allocated, ProxyAllocator::freelist, memcpy, ClassAllocator< C >::proto, and ClassAllocator< C >::typeObject.
static void thread_free | ( | Allocator & | a, | |
void * | p | |||
) | [inline, static] |
Definition at line 87 of file I_ProxyAllocator.h.
References Allocator::free_void().
void thread_free | ( | ClassAllocator< C > & | a, | |
C * | p | |||
) | [inline] |
Definition at line 81 of file I_ProxyAllocator.h.
References ClassAllocator< C >::free().
void thread_freeup | ( | Allocator & | a, | |
ProxyAllocator & | l | |||
) |
Definition at line 44 of file ProxyAllocator.cc.
References ProxyAllocator::allocated, Allocator::free_void(), ProxyAllocator::freelist, and ink_assert.
void thread_freeup | ( | ClassAllocator< C > & | a, | |
ProxyAllocator & | l | |||
) | [inline] |
Definition at line 93 of file I_ProxyAllocator.h.
References ProxyAllocator::allocated, ClassAllocator< C >::free(), ProxyAllocator::freelist, and ink_assert.
Definition at line 25 of file ProxyAllocator.cc.
Referenced by ink_event_system_init().