This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Quick testfeedback...
- To: cygwin-developers at cygwin dot com
- Subject: Re: Quick testfeedback...
- From: Christopher Faylor <cgf at cygnus dot com>
- Date: Wed, 12 Sep 2001 20:40:51 -0400
- Reply-To: cygwin-developers at cygwin dot com
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