apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio Vieiro <anto...@antonioshome.net>
Subject Re: Has been APR initialized?
Date Tue, 20 Sep 2011 21:54:51 GMT
Ah, so there's no harm in initializing APR several times. Yes, I think a 
short note in the docs should clarify that, I guess.


El 20/09/11 21:44, Stefan Fritsch escribió:
> On Tuesday 20 September 2011, Antonio Vieiro wrote:
>> Is there any way to know if APR has already been initialized? I'm
>> working on two modules that use APR, and I'd like any of this to
>> initialize/terminate APR in case of need.
> Just call apr_initialize/apr_terminate in each modules. Only the first
> call to apr_initialize and the n-th call to apr_terminate will do
> something (if apr_initialize has been called n times). I guess this
> should be made clearer in the docs.

View raw message