Patch: General locking (was Possible deadlock and solution)

Gyepi SAM gyepi at praxis-sw.com
Wed Oct 2 02:44:13 CEST 2002


On Tue, Oct 01, 2002 at 07:49:21PM +0200, Matthias Andree wrote:
> > On Tue, Oct 01, 2002 at 03:25:17PM +0200, Matthias Andree wrote:
> > +  for (; n > 0; n--){
> > +    db_lock_release(vhandle_list[n - 1]);
> > +  }
> 
> while(--n >= 0) {
>   db_lock_release(vhandle_list[n]);
> }
> 
> saves the subtraction. Not that it matters unless you lock dozens of
> those.

I does not matter, but it's better style, in this context.

If there are no objections, I'd like to commit the general locking code.

-Gyepi 



More information about the bogofilter-dev mailing list