Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Wed, 12 Sep 2001 20:40:51 -0400 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: Quick testfeedback... Message-ID: <20010912204051.C26072@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1000334648.31768.33.camel@lifelesswks> User-Agent: Mutt/1.3.21i On Thu, Sep 13, 2001 at 08:44:07AM +1000, Robert Collins wrote: >Also the code there is a little arcane. > >for example, the while loop on line 85 looks like it can only ever >execute once - either it jumps to gotoit, or returns 0. So why a loop >construct? That could well be what we in the arcane software industry call "a typo". As you can see, in this case, the difference between a while and an if is inconsequential. The 'while' harkens back to earlier code. In any event (no pun intended), I was not necessarily suggesting that mutos should be used. As I said, they are not general purpose enough for that. I based mutos on a couple of articles that I found on the web which dealt with rolling your own critical section-like objects. Maybe we could use some of those techniques, someday. cgf