Home --> Documentations --> PJLIB Reference

Public Member Functions | Data Fields
pj_pool_t Struct Reference

Public Member Functions

 PJ_DECL_LIST_MEMBER (struct pj_pool_t)
 

Data Fields

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

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

pj_pool_block pj_pool_t::block_list

List of memory blocks allcoated by the pool.

pj_pool_callback* pj_pool_t::callback

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

pj_size_t pj_pool_t::capacity

Current capacity allocated by the pool.

pj_pool_factory * pj_pool_t::factory

Pool factory.

void* pj_pool_t::factory_data

Data put by factory

pj_size_t pj_pool_t::increment_size

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

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.