apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Fester <afes...@apache.org>
Subject Memory Pool Lifetime
Date Mon, 17 Apr 2006 10:34:07 GMT
Hi,


I have read http://subversion.tigris.org/hacking.html#apr-pools
and http://www.apachetutor.org/dev/pools, but one question
still remains: when is it safe to destroy memory pools which
are passed to APR functions like apr_sockaddr_info_get() ?

Is it safe to do something like

apr_pool_t *pool;
apr_pool_create(&pool, parentPool);
apr_sockaddr_info_get(..., pool);
apr_pool_destroy(pool);

or are there any performance- or other issues with this
approach?

Thanks & Best Regards,

	Andreas


Mime
View raw message