Subject: Re: For your edification...
To: Monroe Williams <>
From: Bill Studenmund <>
List: port-macppc
Date: 02/13/2003 17:03:47
On Thu, 13 Feb 2003, Monroe Williams wrote:

> on 2/13/03 2:31 PM, Cliff Neighbors at wrote:
> > this won't work unless all access to `ipending' also use lwarx/stwcx
> > otherwise you will not detect and avoid the race.
> That's what the code does.

I think Cliff's comment was different. I think he was saying make sure
that all writes to this variable use this code. It does not good if one
(or most) writer does this while others don't.

I think reads are fine, since I gather that ipending is an int, so it can
be read atomicly.

Take care,