Re: Quasi-realtime threads
Re: Quasi-realtime threads
- Subject: Re: Quasi-realtime threads
- From: Ethan Funk <email@hidden>
- Date: Tue, 30 Jun 2009 18:27:21 -0700
UPDATE: I have things working well on OS X 10.5 using the following approach to raise my audio pull pthread to a realtime-like thread:
p.sched_priority = sched_get_priority_max(SCHED_FIFO); if(pthread_setschedparam(pthread_self(), SCHED_FIFO, &p)) ServerLoger->MakeEntry("Failed to set thread priority.");
On OS X 10.4 however, the sent audio is very broken up. The pthread_setschedparam call is not returning an error however, so I don't know what is different in the pthread library between the OS versions. It appears as if 10.4 is just ignoring the thread schedule change. Any ideas?
Thanks, Ethan...
|
_______________________________________________
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