Fast-Allocators. More...
#include <stdlib.h>
#include "ink_queue.h"
#include "ink_defs.h"
#include "ink_resource.h"
Go to the source code of this file.
Data Structures | |
class | Allocator |
Allocator for fixed size memory blocks. More... | |
class | ClassAllocator< C > |
Allocator for Class objects. More... | |
class | SparseClassAllocator< C > |
Allocator for space class, a class with a lot of uninitialized space/members. More... | |
Defines | |
#define | RND16(_x) (((_x)+15)&~15) |
Fast-Allocators.
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.
Provides three classes
These class provides a efficient way for handling dynamic allocation. The fast allocator maintains its own freepool of objects from which it doles out object. Allocated objects when freed go back to the free pool.
Definition in file Allocator.h.
#define RND16 | ( | _x | ) | (((_x)+15)&~15) |
Definition at line 48 of file Allocator.h.
Referenced by ClassAllocator< C >::ClassAllocator().