Re: Threading Question
Re: Threading Question
- Subject: Re: Threading Question
- From: Michael Tyson <email@hidden>
- Date: Sun, 12 Feb 2012 12:33:17 +0100
Incidentally, I dunno if this is helpful, but I thought I'd chime in: I've got a lock-free ring buffer implementation, TPCircularBuffer (https://github.com/michaeltyson/TPCircularBuffer) which might do the trick for this. It uses atomic operations and a memory barrier, and works with one reader and one writer. It's based on some neat VM stuff that wraps the memory space around so the memory wrapping is transparent.
You could use it with an appropriate messaging struct.
It's not been formally proven to be correct, but I'm pretty sure it's right, and I've never had any issues with it.
On 1 Feb 2012, at 19:57, Kyle Sluder wrote:
> On Wed, Feb 1, 2012 at 9:53 AM, Morgan Packard <email@hidden> wrote:
>> What do I need to do to see this excellent manpage? "man atomic" in my
>> terminal gives me nothing.
>>
>> Morgans-MacBook-Pro:source morganpackard$ man atomic
>> No manual entry for atomic
>
> Sounds like your installation might be broken. `man atomic` gets me
> the manpage for atomic(3), which describes all the OSAtomic functions.
>
> --Kyle Sluder
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api 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.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden