• 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: Any system calls OK to use in audio thread?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Any system calls OK to use in audio thread?


  • Subject: Re: Any system calls OK to use in audio thread?
  • From: Paul Davis <email@hidden>
  • Date: Tue, 27 Feb 2018 17:15:57 -0500

On Tue, Feb 27, 2018 at 5:10 PM, Brian Armstrong <
email@hidden> wrote:

> Also, in the context of things that could block, it's certainly possible
> that reading/writing to a large array will hit an unmapped page, which I
> believe will context switch your thread out. I don't know that any OS makes
> guarantees for how long a page fault could take. I think it's not generally
> possible to make such guarantees with virtual memory.
>

​that's why you use memlock(2) or equivalent on code and data that will run
in realtime context.​
​
 _______________________________________________
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

References: 
 >Re: Any system calls OK to use in audio thread? (From: "Sophia Poirier [dfx]" <email@hidden>)
 >Re: Any system calls OK to use in audio thread? (From: Matt Ingalls <email@hidden>)
 >Re: Any system calls OK to use in audio thread? (From: Brian Armstrong <email@hidden>)
 >Re: Any system calls OK to use in audio thread? (From: Brian Armstrong <email@hidden>)

  • Prev by Date: Re: Any system calls OK to use in audio thread?
  • Next by Date: AudioBufferList configuration when rendering from AUHAL
  • Previous by thread: Re: Any system calls OK to use in audio thread?
  • Next by thread: AudioBufferList configuration when rendering from AUHAL
  • Index(es):
    • Date
    • Thread