• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Interlocked +1/-1 on Mac OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Interlocked +1/-1 on Mac OS X? (From: "Andy O'Meara" <email@hidden>)

  • Prev by Date: Re: Still cannot get it to link - please help.
  • Next by Date: Re: Programmatically changing "Open using Rosetta" flag
  • Previous by thread: Re: Interlocked +1/-1 on Mac OS X?
  • Next by thread: Re: Interlocked +1/-1 on Mac OS X?
  • Index(es):
    • Date
    • Thread