Home --> Documentations --> PJLIB Reference

Public Member Functions

 PJ_DECL_LIST_MEMBER (struct pj_pool_t)

Data Fields

char obj_name [PJ_MAX_OBJ_NAME]
void * factory_data
pj_size_t capacity
pj_size_t increment_size
pj_pool_block block_list
struct pj_pool_memfirst_mem
pj_size_t used_size

Detailed Description

This structure describes the memory pool. Only implementors of pool factory need to care about the contents of this structure.

Opaque data type for memory pool.

Member Function Documentation


pj_pool_t::PJ_DECL_LIST_MEMBER ( struct pj_pool_t  )

Standard list elements.

Field Documentation

◆ block_list

pj_pool_block pj_pool_t::block_list

List of memory blocks allcoated by the pool.

◆ callback

pj_pool_callback* pj_pool_t::callback

The callback to be called when the pool is unable to allocate memory.

◆ capacity

pj_size_t pj_pool_t::capacity

Current capacity allocated by the pool.

◆ factory

pj_pool_factory * pj_pool_t::factory

Pool factory.

◆ factory_data

void* pj_pool_t::factory_data

Data put by factory

◆ increment_size

pj_size_t pj_pool_t::increment_size

Size of memory block to be allocated when the pool runs out of memory

◆ obj_name

char pj_pool_t::obj_name

Pool name

The documentation for this struct was generated from the following files:


PJLIB Open Source, high performance, small footprint, and very very portable framework
Copyright (C) 2006-2009 Teluu Inc.