Re: multithreaded mixer
Re: multithreaded mixer
- Subject: Re: multithreaded mixer
- From: Philippe Wicker <email@hidden>
- Date: Fri, 6 Feb 2004 07:08:34 +0100
On Thursday, February 5, 2004, at 09:14 PM, Jeff Moore wrote:
On Feb 5, 2004, at 2:19 AM, Philippe Wicker wrote:
I don't use mach semaphores, so I can't comment on them. Also,
there is no reason why you have to use a signal to do this. You
could just as easily wake the thread up on the decrementer and thus
save a bit of overhead. After all, if it's good enough for the main
IO thread, it should be good enough for any auxiliaries, right?
I'm not aware of this technique. Is it documented somewhere? IOKit?
Available in user land?
This is how the various constructs that will wait for a signal with a
time out are implemented. In the HAL, the IO thread is woken up using
the call pthread_cond_timedwait_relative_np() but it would be true of
pthread_cond_timedwait() and the other constructs that have a
wait-with-timeout behavior too.
I know this API but never had the idea to use it that way :)) Thanks.
--
Jeff Moore
Core Audio
Apple
Philippe Wicker
email@hidden
_______________________________________________
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.