OSDN Git Service

2005-07-08 Andrew Haley <aph@redhat.com>
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jul 2005 14:04:22 +0000 (14:04 +0000)
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 8 Jul 2005 14:04:22 +0000 (14:04 +0000)
        * posix-threads.cc (_Jv_ThreadSetPriority): Use SCHED_OTHER
        (regular, non-realtime scheduling), not SCHED_RR (realtime,
        round-robin).

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101769 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/posix-threads.cc

index 14c9a23..cf84f1a 100644 (file)
@@ -1,3 +1,9 @@
+2005-07-08  Andrew Haley  <aph@redhat.com>
+
+        * posix-threads.cc (_Jv_ThreadSetPriority): Use SCHED_OTHER
+        (regular, non-realtime scheduling), not SCHED_RR (realtime,
+        round-robin).
+
 2005-07-07  Aaron Luchko  <aluchko@redhat.com>
 
        * gnu/classpath/jdwp/util/Signature.java
 2005-07-07  Aaron Luchko  <aluchko@redhat.com>
 
        * gnu/classpath/jdwp/util/Signature.java
index 91da25c..f77e2f4 100644 (file)
@@ -343,7 +343,7 @@ _Jv_ThreadSetPriority (_Jv_Thread_t *data, jint prio)
       struct sched_param param;
 
       param.sched_priority = prio;
       struct sched_param param;
 
       param.sched_priority = prio;
-      pthread_setschedparam (data->thread, SCHED_RR, &param);
+      pthread_setschedparam (data->thread, SCHED_OTHER, &param);
     }
 #endif
 }
     }
 #endif
 }