delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin-developers/> |
List-Post: | <mailto:cygwin-developers AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
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 <cgf AT cygnus DOT com> |
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 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |