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

Re: dangerous hash usage?

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2003-09-25 00:40:34 CEST

Julian Foad <julianfoad@btopenworld.com> writes:

> That's a confusing @remark. I would suggest it be changed to one of these if one of these is correct:
>
> * @remark During an iteration it is safe to delete the current hash entry,
> * but not to delete any other entry or to add an entry.
> * Multiple iterations may be in progress at the same time if none of them
> * adds or deletes hash entries.
>
> * @remark During an iteration it is safe to delete the current hash entry,
> * and to add entries.
> * Multiple iterations may be in progress at the same time if none of them
> * deletes hash entries.
>
> I.e. the remark should say what is guaranteed to be safe, not "you may do this but the results may be unpredictable".

If you send a patch against APR HEAD, one of us can commit the docfix
to APR.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Sep 25 00:42:46 2003

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.