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

Re: svn commit: r21016 - in trunk: . subversion/include/private subversion/libsvn_fs_base/bdb subversion/libsvn_subr

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2006-08-09 23:33:33 CEST

rooneg@tigris.org writes:

> Author: rooneg
> Date: Tue Aug 8 08:34:59 2006
> New Revision: 21016

> + * Call an initialization function in a thread-safe manner.
> + *
> + * @a global_status must be a pointer to a global, zero-initialized
> + * #svn_atomic_t. @a init_func is a pointer to the function that performs
> + * the actual initialization.
> + *
> + * @since New in 1.5.
> + */
> +svn_error_t *
> +svn_atomic_init_once(volatile svn_atomic_t *global_status,
> + svn_error_t *(*init_func)(void));

Will this always be used in places where no parameters need to be
passed? How about:

   svn_error_t *
   svn_atomic_init_once(volatile svn_atomic_t *global_status,
                        svn_error_t *(*init_func)(void *baton),
                        void *baton);

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 9 23:34:15 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.