Now it doesn't make any sense. For SCHED_OTHER policy, the only prio allowed
is 0. What you want is to set the nice value, which is done with setpriority
call

On Sep 3, 2010 9:55 PM, "Enlightenment SVN" <no-re...@enlightenment.org>
wrote:
Log:
 rr->other


Author:       raster
Date:         2010-09-03 17:54:53 -0700 (Fri, 03 Sep 2010)
New Revision: 51873

Modified:
 trunk/ecore/src/lib/ecore/ecore_thread.c

Modified: trunk/ecore/src/lib/ecore/ecore_thread.c
===================================================================
--- trunk/ecore/src/lib/ecore/ecore_thread.c    2010-09-04 00:54:42 UTC (rev
51872)
+++ trunk/ecore/src/lib/ecore/ecore_thread.c    2010-09-04 00:54:53 UTC (rev
51873)
@@ -447,8 +447,8 @@
       struct sched_param param;

       memset(&param, 0, sizeof(param));
-       param.sched_priority = sched_get_priority_min(SCHED_RR);
-       pthread_setschedparam(pth->thread, SCHED_RR, &param);
+       param.sched_priority = sched_get_priority_min(SCHED_OTHER);
+       pthread_setschedparam(pth->thread, SCHED_OTHER, &param);

       return (Ecore_Thread *) work;
     }
@@ -623,8 +623,8 @@
            struct sched_param param;

            memset(&param, 0, sizeof(param));
-            param.sched_priority = sched_get_priority_min(SCHED_RR);
-            pthread_setschedparam(t, SCHED_RR, &param);
+            param.sched_priority = sched_get_priority_min(SCHED_OTHER);
+            pthread_setschedparam(t, SCHED_OTHER, &param);

            return (Ecore_Thread *) worker;
         }
@@ -655,8 +655,8 @@
       struct sched_param param;

       memset(&param, 0, sizeof(param));
-       param.sched_priority = sched_get_priority_min(SCHED_RR);
-       pthread_setschedparam(pth->thread, SCHED_RR, &param);
+       param.sched_priority = sched_get_priority_min(SCHED_OTHER);
+       pthread_setschedparam(pth->thread, SCHED_OTHER, &param);

       return (Ecore_Thread *) worker;
     }


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
enlightenment-svn mailing list
enlightenment-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to