apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject Re: On to APR 2.0.0? Beyond 9x/ME
Date Sun, 15 Feb 2009 22:34:55 GMT
Branko ─îibej wrote:

> I think there may be some interest in this ... we've learned the hard
> way that pools as they stand today, while moderately nice for stateless
> server implementations, are less than moderately horrible for anything else.

I strongly disagree.

malloc and free are painful in the extreme, subpools give you all the 
structure of object oriented programming, without the need to touch C++.

Just replace malloc with apr_pool_create, and replace free with 
apr_pool_destroy, and you are done.


View raw message