same - back to RR.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 4 Sep 2010 05:40:38 +0000 (05:40 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 4 Sep 2010 05:40:38 +0000 (05:40 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@51878 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_thread.c

index fa474a5..fecf50c 100644 (file)
@@ -447,8 +447,8 @@ ecore_thread_run(Ecore_Cb func_blocking,
        struct sched_param param;
 
        memset(&param, 0, sizeof(param));
-       param.sched_priority = sched_get_priority_min(SCHED_OTHER);
-       pthread_setschedparam(pth->thread, SCHED_OTHER, &param);
+       param.sched_priority = sched_get_priority_min(SCHED_RR);
+       pthread_setschedparam(pth->thread, SCHED_RR, &param);
 
        return (Ecore_Thread *) work;
      }
@@ -623,8 +623,8 @@ EAPI Ecore_Thread *ecore_long_run(Ecore_Thread_Heavy_Cb func_heavy,
             struct sched_param param;
 
             memset(&param, 0, sizeof(param));
-            param.sched_priority = sched_get_priority_min(SCHED_OTHER);
-            pthread_setschedparam(t, SCHED_OTHER, &param);
+            param.sched_priority = sched_get_priority_min(SCHED_RR);
+            pthread_setschedparam(t, SCHED_RR, &param);
 
             return (Ecore_Thread *) worker;
          }
@@ -655,8 +655,8 @@ EAPI Ecore_Thread *ecore_long_run(Ecore_Thread_Heavy_Cb func_heavy,
        struct sched_param param;
 
        memset(&param, 0, sizeof(param));
-       param.sched_priority = sched_get_priority_min(SCHED_OTHER);
-       pthread_setschedparam(pth->thread, SCHED_OTHER, &param);
+       param.sched_priority = sched_get_priority_min(SCHED_RR);
+       pthread_setschedparam(pth->thread, SCHED_RR, &param);
 
        return (Ecore_Thread *) worker;
      }