am ff4c57ad: Merge "TimedEventQueue now explicitly sets its scheduling policy to foreground as it should." into gingerbread
Merge commit 'ff4c57ade41c1c5c5f79088f6cef0fc1142c25f1' into gingerbread-plus-aosp * commit 'ff4c57ade41c1c5c5f79088f6cef0fc1142c25f1': TimedEventQueue now explicitly sets its scheduling policy to foreground as it should.
This commit is contained in:
@@ -26,6 +26,8 @@
|
||||
|
||||
#include "include/TimedEventQueue.h"
|
||||
|
||||
#include <cutils/sched_policy.h>
|
||||
|
||||
#include <sys/prctl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/resource.h>
|
||||
@@ -209,6 +211,8 @@ void *TimedEventQueue::ThreadWrapper(void *me) {
|
||||
#endif
|
||||
|
||||
setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_FOREGROUND);
|
||||
set_sched_policy(androidGetTid(), SP_FOREGROUND);
|
||||
|
||||
static_cast<TimedEventQueue *>(me)->threadEntry();
|
||||
|
||||
#ifdef ANDROID_SIMULATOR
|
||||
|
||||
Reference in New Issue
Block a user