• 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: Matt Ingalls <email@hidden>
  • Date: Tue, 27 Feb 2018 11:23:46 -0800

OK thanks

> I would be very surprised if memcpy() were on a list of functions that lock.

Yeah me too, but I wanted to be absolutely sure.
Even googling “memcpy thread safe” came up with a(n unverified) comment that it
IS on Solaris, which probably means it takes a mutex, right?

Perhaps my question here really should have been:  “where can I find a list of
common functions that never lock?” :)


> dispatch_async() is completely different from vDSP.

Well I said that to say if dispatch_async isn’t lock-free, then that means GCD
isn't entirely either.
And the (typically vague) apple documentation says "many vecLib routines used
multiple POSIX threads...In OS X v10.7, these routines use Grand Central
Dispatch”
And since vDSP is part of vecLib…what else can I conclude?

-m
 _______________________________________________
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: 
 >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 Willoughby <email@hidden>)

  • Prev by Date: Re: Any system calls OK to use in audio thread?
  • Next by Date: Re: Any system calls OK to use in audio thread?
  • Previous by thread: Re: Any system calls OK to use in audio thread?
  • Next by thread: Re: Any system calls OK to use in audio thread?
  • Index(es):
    • Date
    • Thread