File area_alloc.c
FileList > base > area_alloc.c
Go to the source code of this file
#include "config.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include "area_alloc.h"
#include "set_object.h"
#include "memory_wrapper.hpp"
Public Types
Public Attributes
Public Static Attributes
| Type |
Name |
| AREA * |
area_List = [**NULL**](freelistheap_8h.md#define-null)
|
Public Functions
Public Static Functions
Macros
| Type |
Name |
| define |
AREA_PREFIX_SIZE [**sizeof**](broker__monitor_8c.md#function-timeout)([**double**](broker__monitor_8c.md#function-timeout))
|
| define |
ER_AREA_ALREADY_STARTED [**ER\_GENERIC\_ERROR**](error__code_8h.md#define-er_generic_error)
|
| define |
LF_AREA_BITMAP_USAGE_RATIO [**LF\_BITMAP\_95PERCENTILE\_USAGE\_RATIO**](lockfree__bitmap_8hpp.md#define-lf_bitmap_95percentile_usage_ratio)
|
| define |
VOLATILE_ACCESS (v, t) (\*(([**t**](broker__monitor_8c.md#function-timeout) [**volatile**](broker__monitor_8c.md#function-timeout) \*) &(v)))
|
Public Types Documentation
enum area__alloc_8c_1a06fc87d81c62e9abb8790b6e5713c55b
enum area__alloc_8c_1a06fc87d81c62e9abb8790b6e5713c55b {
AREA_PREFIX_INITED = 0,
AREA_PREFIX_FREED = 0x01010101
};
Public Attributes Documentation
variable area_List_lock
pthread_mutex_t area_List_lock;
Public Static Attributes Documentation
variable area_List
Public Functions Documentation
function area_alloc
void * area_alloc (
AREA * area
)
function area_create
AREA * area_create (
const char * name,
size_t element_size,
size_t alloc_count
)
function area_destroy
void area_destroy (
AREA * area
)
function area_dump
void area_dump (
FILE * fp
)
function area_final
function area_flush
void area_flush (
AREA * area
)
function area_free
int area_free (
AREA * area,
void * ptr
)
function area_init
function area_validate
int area_validate (
AREA * area,
const void * address
)
Public Static Functions Documentation
function area_alloc_block
static AREA_BLOCK * area_alloc_block (
AREA * area
)
function area_alloc_blockset
static AREA_BLOCKSET_LIST * area_alloc_blockset (
AREA * area
)
function area_find_block
static AREA_BLOCK * area_find_block (
AREA * area,
const void * ptr
)
function area_info
static void area_info (
AREA * area,
FILE * fp
)
function area_insert_block
static int area_insert_block (
AREA * area,
AREA_BLOCK * new_block
)
Macro Definition Documentation
define AREA_PREFIX_SIZE
#define AREA_PREFIX_SIZE `sizeof ( double )`
define ER_AREA_ALREADY_STARTED
#define ER_AREA_ALREADY_STARTED `ER_GENERIC_ERROR`
define LF_AREA_BITMAP_USAGE_RATIO
#define LF_AREA_BITMAP_USAGE_RATIO `LF_BITMAP_95PERCENTILE_USAGE_RATIO`
define VOLATILE_ACCESS
#define VOLATILE_ACCESS (
v,
t
) `(*(( t volatile *) &(v)))`
The documentation for this class was generated from the following file cubrid/src/base/area_alloc.c