• 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
Can asynch file I/O calls block?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can asynch file I/O calls block?


  • Subject: Can asynch file I/O calls block?
  • From: Howard Moon <email@hidden>
  • Date: Thu, 4 Feb 2010 11:16:04 -0800

Hi all,

I've been working on doing some asynchronous file reading and writing from the Render call in my AudioUnit. It seems to be working fine in Logic (8), but discussions I've had on the mt-smp mailing list led me to question whether there might be a problem I'm just not seeing in my testing (yet).

The functions I'm using are PBReadFileAsync and PBWriteFileAsync. These caused major problems in the RTAS (ProTools) version, and I had to replace them with a lock-free circular queue and a semaphore to signal additions to the queue (i.e., requests to read or write). What I'm wondering is...

Can these asynchronous file operations block the real-time audio thread that Render is running in? I haven't seen any problems yet, but if there *might* be a problem when I put this in the field, then I'd be better off changing out that code for the solution I used in the RTAS version.

Do you know if there might be a blocking (or other) problem using the asynchronous file I/O calls?

Thanks,
	-Howard



_______________________________________________
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


  • Prev by Date: Re: Native mode IO problems
  • Next by Date: Re: ExtAudioFileConvert.cpp: can I get rid of mutex and thread handling?
  • Previous by thread: Re: Assigning a callback and enabling playthru on remoteIO node
  • Next by thread: Re: ExtAudioFileConvert.cpp: can I get rid of mutex and thread handling?
  • Index(es):
    • Date
    • Thread