Problem using OSAtomic functions
Problem using OSAtomic functions
- Subject: Problem using OSAtomic functions
- From: "Carlos Silva" <email@hidden>
- Date: Fri, 27 Jan 2006 16:03:35 -0500
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