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.
Thanks,
Antonio
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.