site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=L9IJidv01j3tMpRImjU368pMpRzIl5BARn6gb1DPp8fYTm2EsVJXrKMwzxDFPYfi8MSwLGGdAYm6w6+eVXoTyPQ/PjgOZIzAuE8U3BZk/jJYS37X3tlVWt/fNQxPmEUQBAeIP87mELzSmq7CIib9iOIeH1RVl0+9iL1Px/W5FwU= Taking a quick look at OSAtomic.h in both 10.4.3 and 10.3.9 I see no function called OSAtomicCompareAndSwap(), I do however see something called OSCompareAndSwap()... Just my two cents. -H. On 1/31/06, Carlos Silva <csilva@matrox.com> wrote:
Did I post this on the right list?
Has anyone ever used these functions at the kernel level?
TIA
________________________________
From: darwin-kernel-bounces+csilva=matrox.com@lists.apple.com [mailto:darwin-kernel-bounces+csilva=matrox.com@lists.apple.com] On Behalf Of Carlos Silva Sent: Friday, January 27, 2006 4:04 PM To: darwin-kernel@lists.apple.com Subject: Problem using OSAtomic functions
Hello,
I am writing a CoreAudio KEXT (based on the AudioReflectorDriver sample but I also tried with the PhantomDriver sample) and I can not use any of the functions included in <libkern/OSAtomic.h>..
I get a "was not declared in this scope" compilation error.
Here's a code example:
#include <libkern/OSAtomic.h>
class foo
{
UInt32 Temp;
void f()
{
OSAtomicCompareAndSwap(1, 0, &Temp);
};
};
Any ideas?
Carlos
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/bogvardi%40gmail.com
This email sent to bogvardi@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com