Jabberd14-1.6.0/jabberd/lib/pool.c/_pool_free

Last-modified: 2007-03-05 (月) 21:15:25

このページを編集する際は,編集に関する方針に従ってください.

概要

* create a cleanup tracker
*
* this function is used to create a pfree structure that can be passed to _pool_cleanup_append()

引数

* @param p the pool to which the pool_cleaner should be added
* @param f the function that should be called if the pool is freed
* @param arg the parameter that should be passed to the pool_cleaner function
* @return pointer to the new pfree structure

実装

  • メモリプールpool参照
struct pfree *_pool_free(pool p, pool_cleaner f, void *arg)
{
    struct pfree *ret;
    /* make the storage for the tracker */
    ret = _retried__malloc(sizeof(struct pfree));
    ret->f = f;
    ret->arg = arg;
    ret->next = NULL;
    return ret;
}

呼出元

Jabberd14-1.6.0/jabberd/lib/pool.c/pmalloc

#related: relatedプラグインは廃止されました。