[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Another 1.4 release critical bug

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-08-06 02:13:46 CEST

"Garrett Rooney" <rooneg@electricjellyfish.net> writes:

> +/* Global pool to allocate DSOs in. */
> +static apr_pool_t *dso_pool;

> +void
> +svn_dso_initialize()
> +{
> + if (dso_pool)
> + return;
> +
> + dso_pool = svn_pool_create(NULL);

> +svn_error_t *
> +svn_dso_load(apr_dso_handle_t **dso, const char *fname)
> +{
> + apr_status_t status;
> +
> + if (! dso_pool)
> + svn_dso_initialize();

If we agree on Vlad's refactoring of the atomic_init_once stuff for
SASL then this might be another place it could be used.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Aug 6 02:14:12 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.