Re: Problem using OSAtomic functions
Re: Problem using OSAtomic functions
- Subject: Re: Problem using OSAtomic functions
- From: Herb Petschauer <email@hidden>
- Date: Tue, 31 Jan 2006 11:31:18 -0800
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 <email@hidden> 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=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
>
>
_______________________________________________
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