Skip to content

File customheaps.cpp

FileList > cubrid > src > heaplayers > customheaps.cpp

Go to the source code of this file

  • #include <stdlib.h>
  • #include <new>
  • #include "porting_inline.hpp"
  • #include "system.h"
  • #include "heaplayers.h"
  • #include "memory_wrapper.hpp"

Classes

Type Name
class TheFixedHeapType
class TheObstackHeapType

Public Attributes

Type Name
volatile int anyThreadCreatedInHL = 1

Public Functions

Type Name
void * hl_fixed_alloc (UINTPTR heap_id, size_t sz)
void hl_fixed_free (UINTPTR heap_id, void * ptr)
void * hl_ostk_alloc (UINTPTR heap_id, size_t sz)
void hl_ostk_free (UINTPTR heap_id, void * ptr)
UINTPTR hl_register_fixed_heap (int chunk_size)
UINTPTR hl_register_ostk_heap (int chunk_size)
void hl_unregister_fixed_heap (UINTPTR heap_id)
void hl_unregister_ostk_heap (UINTPTR heap_id)

Macros

Type Name
define free (ptr) [**cub\_free**](memory__cwrapper_8h.md#function-cub_free)(ptr)
define malloc (sz) [**cub\_alloc**](memory__cwrapper_8h.md#function-cub_alloc)([**sz**](broker__monitor_8c.md#function-timeout), [**\_\_FILE\_\_**](broker__monitor_8c.md#function-timeout), [**\_\_LINE\_\_**](broker__monitor_8c.md#function-timeout))

Public Attributes Documentation

variable anyThreadCreatedInHL

volatile int anyThreadCreatedInHL;

Public Functions Documentation

function hl_fixed_alloc

void * hl_fixed_alloc (
    UINTPTR heap_id,
    size_t sz
) 

function hl_fixed_free

void hl_fixed_free (
    UINTPTR heap_id,
    void * ptr
) 

function hl_ostk_alloc

void * hl_ostk_alloc (
    UINTPTR heap_id,
    size_t sz
) 

function hl_ostk_free

void hl_ostk_free (
    UINTPTR heap_id,
    void * ptr
) 

function hl_register_fixed_heap

UINTPTR hl_register_fixed_heap (
    int chunk_size
) 

function hl_register_ostk_heap

UINTPTR hl_register_ostk_heap (
    int chunk_size
) 

function hl_unregister_fixed_heap

void hl_unregister_fixed_heap (
    UINTPTR heap_id
) 

function hl_unregister_ostk_heap

void hl_unregister_ostk_heap (
    UINTPTR heap_id
) 

Macro Definition Documentation

define free

#define free (
    ptr
) `cub_free (ptr)`

define malloc

#define malloc (
    sz
) `cub_alloc ( sz , __FILE__ , __LINE__ )`


The documentation for this class was generated from the following file cubrid/src/heaplayers/customheaps.cpp