CUBRID Engine  latest
area_alloc.h File Reference
#include "lockfree_bitmap.hpp"
#include "porting.h"
Include dependency graph for area_alloc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  area_block
 
struct  area_blockset_list
 
struct  area
 

Macros

#define AREA_BLOCKSET_SIZE   256
 

Typedefs

typedef struct area_block AREA_BLOCK
 
typedef struct area_blockset_list AREA_BLOCKSET_LIST
 
typedef struct area AREA
 

Functions

void area_init (void)
 
void area_final (void)
 
AREAarea_create (const char *name, size_t element_size, size_t alloc_count)
 
void area_destroy (AREA *area)
 
void * area_alloc (AREA *area)
 
int area_validate (AREA *area, const void *address)
 
int area_free (AREA *area, void *ptr)
 
void area_flush (AREA *area)
 
void area_dump (FILE *fpp)
 

Macro Definition Documentation

#define AREA_BLOCKSET_SIZE   256

Definition at line 42 of file area_alloc.h.

Referenced by area_alloc_blockset(), area_find_block(), area_info(), and area_insert_block().

Typedef Documentation

typedef struct area AREA

Definition at line 73 of file area_alloc.h.

typedef struct area_block AREA_BLOCK

Definition at line 50 of file area_alloc.h.

Definition at line 62 of file area_alloc.h.

Function Documentation

void area_destroy ( AREA area)

Definition at line 247 of file area_alloc.c.

References area_flush(), assert, free_and_init, area::next, NULL, pthread_mutex_lock, pthread_mutex_unlock, and rv.

Referenced by classobj_area_final(), obt_area_final(), pr_area_final(), set_area_final(), test_area(), tp_final(), and ws_area_final().

Here is the caller graph for this function:

void area_dump ( FILE *  fpp)

Definition at line 853 of file area_alloc.c.

References area_info(), area::next, NULL, pthread_mutex_lock, pthread_mutex_unlock, and rv.

Referenced by ws_dump().

Here is the caller graph for this function:

void area_final ( void  )
void area_init ( void  )
int area_validate ( AREA area,
const void *  address 
)

Definition at line 487 of file area_alloc.c.

References area_find_block(), ARG_FILE_LINE, assert, ER_AREA_ILLEGAL_POINTER, ER_ERROR_SEVERITY, er_set(), error(), NO_ERROR, NULL, and p.

Referenced by ml_ext_free().

Here is the caller graph for this function: