apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Fritsch ...@sfritsch.de>
Subject Re: Has been APR initialized?
Date Tue, 20 Sep 2011 19:44:53 GMT
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