Re: Where is atomicqueue?
Re: Where is atomicqueue?
- Subject: Re: Where is atomicqueue?
- From: "Shawn Erickson" <email@hidden>
- Date: Thu, 24 Apr 2008 08:40:20 -0700
On Thu, Apr 24, 2008 at 8:30 AM, Shawn Erickson <email@hidden> wrote:
> On Thu, Apr 24, 2008 at 4:35 AM, Army Research Lab <email@hidden> wrote:
> > I've been poking through the man pages, and discovered the docs for
> > <libkern/OSAtomic.h>; I see the documentation for atomic and for spinlock,
> > but 'man barrier' also lists atomicqueue. Unfortunately, although the man
> > pages claim that I should find it, it isn't there. I also can't find
> > anything like it in /usr/include. Does it exist?
> >
> > BTW, I'm looking at all of this on a OS X 10.4.11 machine...
>
> <http://developer.apple.com/documentation/Cocoa/Conceptual/Multithreading/ThreadSafety/chapter_5_section_6.html>
>
> [0:505] > find /usr/include -name "OSAtomic.h"
> /usr/include/libkern/OSAtomic.h
>
> That is on a 10.4.11 system with Xcode 2.5.
Ah maybe you are talking about that header not containing the
definition for OSAtomic queue?
>From the 10.5 man page...
"Most of these functions first appeared in Mac OS 10.4 (Tiger). The
"Orig" forms of the boolean operations, the "int", "long" and "ptr"
forms of compare-and-swap, and lockless enqueue/dequeue first appeared
in Mac OS 10.5 (Leopard)."
The atomic queue does exist on 10.4 when in the kernel.
-Shawn
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden