summaryrefslogtreecommitdiffstats
path: root/vm/Thread.h
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-09-12 10:10:13 -0700
committerSan Mehat <san@google.com>2009-09-12 10:48:02 -0700
commit5a2056ca8c7e7c0ed9f51d68cedbee59cc936685 (patch)
tree0bb1e9b96e87c3dc6421c0682fd276887e19148a /vm/Thread.h
parentefa0dcd52c030d2ace844070902979dd09e2c881 (diff)
downloadandroid_dalvik-5a2056ca8c7e7c0ed9f51d68cedbee59cc936685.tar.gz
android_dalvik-5a2056ca8c7e7c0ed9f51d68cedbee59cc936685.tar.bz2
android_dalvik-5a2056ca8c7e7c0ed9f51d68cedbee59cc936685.zip
dalvik: Switch to common cutils sched_policy api
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'vm/Thread.h')
-rw-r--r--vm/Thread.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/vm/Thread.h b/vm/Thread.h
index a829319ec..1bb531409 100644
--- a/vm/Thread.h
+++ b/vm/Thread.h
@@ -22,8 +22,6 @@
#include "jni.h"
-#include <utils/threads.h> /* Need SchedPolicy */
-
#if defined(CHECK_MUTEX) && !defined(__USE_UNIX98)
/* glibc lacks this unless you #define __USE_UNIX98 */
int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int type);
@@ -421,13 +419,6 @@ INLINE JNIEnv* dvmGetThreadJNIEnv(Thread* self) { return self->jniEnv; }
INLINE void dvmSetThreadJNIEnv(Thread* self, JNIEnv* env) { self->jniEnv = env;}
/*
- * Change the scheduling policy of the current process.
- * This is mapped onto whatever underlying scheme the kernel
- * supports (cgroups/scheduler policies/wombats/etc)
- */
-void dvmChangeThreadSchedulerPolicy(SchedPolicy policy);
-
-/*
* Update the priority value of the underlying pthread.
*/
void dvmChangeThreadPriority(Thread* thread, int newPriority);