apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko Čibej <br...@xbc.nu>
Subject Re: On to APR 2.0.0? Beyond 9x/ME
Date Mon, 16 Feb 2009 13:07:29 GMT
Mladen Turk wrote:
> Branko Čibej wrote:
>> Graham Leggett wrote:
>>> Branko Čibej wrote:
>>>> Oh, certainly. Except that sometimes the "just" is a pretty big one. I
>>>> remember once ... well, to make a long story short, control over pool
>>>> lifetime wasn't, and we ended up jumping through several Klein bottles
>>>> to get there.
>>> Unless I am not following something, you control the pool lifetime.
>> Not if you have no control of pool cleanup order, which is exactly what
>> happens when you try to allocate long-lived structure in a DSO; the way
>> we do pool cleanup guarantees that the DSO gets unloaded before any
>> global pools are cleaned up.
>> You could say that the answer is "don't do that", but sometimes there's
>> no other option.
> There is a new apr_poll_pre_cleanup_register API, meant to
> be used exactly for that. It ensures that cleanup will run
> before subpools gets destroyed.

*Now* there is. Might be enough for the case I mentioned, dunno --
frankly I haven't looked it in a while. (Not that it would help SVN 1.x,
but that's irrelevant).

View raw message