high priority timers in user space
high priority timers in user space
- Subject: high priority timers in user space
- From: Stefan Werner <email@hidden>
- Date: Thu, 11 Sep 2003 10:56:33 +0200
Hi,
I am currently working on a user space audio driver via the
AudioHardwarePlugin.h API. My timer for the main processing loop is a
CFRunLoopTimer, running in a separate pthread (otherwise it'd hijack
the application's RunLoop, which is not desirable). Timing is
surprisingly accurate, but I'm getting serious drop outs under higher
system loads. What can I do? I was thinking about increasing the
priority of the timer thread, but a simple experiment with renice
didn't improve anything, so I'm not sure wether a higher thread
priority would change anything here. Should I use a different timer? I
saw that the PhantomAudioDriver example is using IOKit timers, but are
these available to "mortal" user space applications? Is there a timer
that will call my callback with close-to-realtime precision/priority?
Thanks,
Stefan
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.