[mythtv-commits] Ticket #1659: replace not working pthread_setschedparam for SCHED_OTHER with setpriority
MythTV
mythtv at cvs.mythtv.org
Fri Jul 21 19:38:26 UTC 2006
#1659: replace not working pthread_setschedparam for SCHED_OTHER with setpriority
----------------------------------------+-----------------------------------
Reporter: ajlill at ajlc.waterloo.on.ca | Owner: ijr
Type: patch | Status: new
Priority: minor | Milestone:
Component: mythtv | Version: head
Severity: medium | Resolution:
----------------------------------------+-----------------------------------
Changes (by Janne <janne-mythtv at grunau.be>):
* version: => head
* type: defect => patch
* summary: the attempt to nice the scheduler thread doesn't work =>
replace not working pthread_setschedparam for
SCHED_OTHER with setpriority
Comment:
The only supported priority for policy SCHED_OTHER is 0. And for every
other sched_param pthread_setschedparam fails with EINVAL for me.
setpriority() seems to work as intended.
Attached patch converts also the other occurances of pthread_setschedparam
with SCHED_OTHER to setpriority().
This might solve the playback issues some people see with EIT processing.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/1659#comment:2>
MythTV <http://www.mythtv.org/>
MythTV
More information about the mythtv-commits
mailing list