Re: Interlocked +1/-1 on Mac OS X?
Re: Interlocked +1/-1 on Mac OS X?
- Subject: Re: Interlocked +1/-1 on Mac OS X?
- From: David Dunham <email@hidden>
- Date: Wed, 10 May 2006 11:09:44 -0700
On 10 May 2006, at 09:14, Andy O'Meara wrote:
long InterlockedDecrement( long* );
Hmm, I think Apple may have fixed the documentation since I wrote this:
/*
Windows 98, Windows NT 4.0 and later: The return value is the
resulting decremented value.
*/
long InterlockedDecrement(long* aVal)
{
// Note that Apple's documentation is incorrect -- AddAtomic
actually returns the
// original value, not the result
return ::DecrementAtomic(aVal) - 1;
}
But how does this relate to using Xcode?
David Dunham
Voice/Fax: 206 783 7404 http://www.pensee.com/dunham/
Imagination is more important than knowledge. -- Albert Einstein
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden