Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Quasi-realtime threads
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quasi-realtime threads



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:

struct sched_param p;

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

References: 
 >Quasi-realtime threads (From: Ethan Funk <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.