This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Quick testfeedback...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]