Ignore:
Timestamp:
Mar 30, 2006 3:56:01 PM (18 years ago)
Author:
bennylp
Message:

Added ability to have custom pool backend (needed for pool debugging facility)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/pool.h

    r232 r364  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA  
    1818 */ 
     19 
     20#include <pj/list.h> 
     21 
     22/* See if we use pool's alternate API. 
     23 * The alternate API is used e.g. to implement pool debugging. 
     24 */ 
     25#if PJ_HAS_POOL_ALT_API 
     26#  include <pj/pool_alt.h> 
     27#endif 
     28 
     29 
    1930#ifndef __PJ_POOL_H__ 
    2031#define __PJ_POOL_H__ 
     
    2435 * @brief Memory Pool. 
    2536 */ 
    26  
    27 #include <pj/list.h> 
    2837 
    2938PJ_BEGIN_DECL 
     
    475484 
    476485/** 
     486 * Dump pool factory state. 
     487 * @param pf        The pool factory. 
     488 * @param detail    Detail state required. 
     489 */ 
     490PJ_INLINE(void) pj_pool_factory_dump( pj_pool_factory *pf, 
     491                                      pj_bool_t detail ) 
     492{ 
     493    (*pf->dump_status)(pf, detail); 
     494} 
     495 
     496/** 
    477497 *  @}  // PJ_POOL_FACTORY 
    478498 */ 
Note: See TracChangeset for help on using the changeset viewer.