aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordavilla <davilla@4pi.com>2011-08-31 21:15:19 -0400
committerdavilla <davilla@4pi.com>2011-08-31 21:15:19 -0400
commit1b7827b70c6da04e2921849a284e92a262b0a9f5 (patch)
treebd101b5c1775a72ae44b8549125d08a4555c806c
parent083229e405c30946135f23753a17f9798eff884e (diff)
[ios] changed back to using NSThread priority functions
-rw-r--r--xbmc/osx/atv2/XBMCEAGLView.mm4
-rw-r--r--xbmc/osx/ios/XBMCEAGLView.mm4
2 files changed, 6 insertions, 2 deletions
diff --git a/xbmc/osx/atv2/XBMCEAGLView.mm b/xbmc/osx/atv2/XBMCEAGLView.mm
index aa4019b40e..7560b81e08 100644
--- a/xbmc/osx/atv2/XBMCEAGLView.mm
+++ b/xbmc/osx/atv2/XBMCEAGLView.mm
@@ -251,6 +251,8 @@
{
CCocoaAutoPool outerpool;
+ [NSThread setThreadPriority:0.9];
+ /*
// Changing to SCHED_RR is safe under OSX, you don't need elevated privileges and the
// OSX scheduler will monitor SCHED_RR threads and drop to SCHED_OTHER if it detects
// the thread running away. OSX automatically does this with the CoreAudio audio
@@ -270,7 +272,7 @@
// change from default SCHED_OTHER to SCHED_RR
policy = SCHED_RR;
result = pthread_setschedparam(pthread_self(), policy, &param );
-
+ */
// signal we are alive
NSConditionLock* myLock = arg;
[myLock lock];
diff --git a/xbmc/osx/ios/XBMCEAGLView.mm b/xbmc/osx/ios/XBMCEAGLView.mm
index 6b3c0c1930..9a4f5d1b8e 100644
--- a/xbmc/osx/ios/XBMCEAGLView.mm
+++ b/xbmc/osx/ios/XBMCEAGLView.mm
@@ -275,6 +275,8 @@
{
CCocoaAutoPool outerpool;
+ [NSThread setThreadPriority:0.9];
+ /*
// Changing to SCHED_RR is safe under OSX, you don't need elevated privileges and the
// OSX scheduler will monitor SCHED_RR threads and drop to SCHED_OTHER if it detects
// the thread running away. OSX automatically does this with the CoreAudio audio
@@ -293,7 +295,7 @@
// change from default SCHED_OTHER to SCHED_RR
policy = SCHED_RR;
result = pthread_setschedparam(pthread_self(), policy, &param );
-
+ */
// signal we are alive
NSConditionLock* myLock = arg;
[myLock lock];