RE: Problem using OSAtomic functions
RE: Problem using OSAtomic functions
- Subject: RE: Problem using OSAtomic functions
- From: "Carlos Silva" <email@hidden>
- Date: Tue, 31 Jan 2006 13:37:34 -0500
Did I post this on the right list?
Has anyone ever used these functions at the kernel level?
TIA
From:
darwin-kernel-bounces+csilva=email@hidden
[mailto:darwin-kernel-bounces+csilva=email@hidden] On Behalf Of Carlos Silva
Sent: Friday, January 27, 2006
4:04 PM
To: email@hidden
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden