Can asynch file I/O calls block?
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