• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Threading Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • RE: Threading Question
      • From: email@hidden
References: 
 >Re: Threading Question (From: Morgan Packard <email@hidden>)
 >Re: Threading Question (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Convolution with large filters?
  • Next by Date: RE: Max simultaneous source count with Remote I/O Callback much lower than with OpenAL
  • Previous by thread: Re: Threading Question
  • Next by thread: RE: Threading Question
  • Index(es):
    • Date
    • Thread