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

Re: svn commit: rev 7004 - branches/svnserve-thread-pools/subversion/svnserve

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-09-10 03:29:15 CEST

mark benedetto king <mbk@lowlatency.com> writes:

> I'm not offended (proud to be in such good company, even), but I am
> wondering what mistakes you saw.
>
> Error handling aside (and some minor optimizations removed), things are
> essentially:
>
> wait(cond, mutex):
> # section 1:
> # wait for pending signals to be delivered
> while 1:
> acquire(cond->mutex)
> if !cond->num_undelivered:
> break
> release(cond->mutex)

That loop could be waiting for other threads to make progress and yet
it doesn't block, instead it relies on release/acquire being
sufficient to allow the other threads to proceed. While it probably
works, it's not particularly elegant.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Sep 10 03:30:07 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.