Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2004ebfd authored by Andreas Huber's avatar Andreas Huber Committed by Android Git Automerger
Browse files

am 0d661b5e: am ff4c57ad: Merge "TimedEventQueue now explicitly sets its...

am 0d661b5e: am ff4c57ad: Merge "TimedEventQueue now explicitly sets its scheduling policy to foreground as it should." into gingerbread

Merge commit '0d661b5e'

* commit '0d661b5e':
  TimedEventQueue now explicitly sets its scheduling policy to foreground as it should.
parents 477e49a3 0d661b5e
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -26,6 +26,8 @@


#include "include/TimedEventQueue.h"
#include "include/TimedEventQueue.h"


#include <cutils/sched_policy.h>

#include <sys/prctl.h>
#include <sys/prctl.h>
#include <sys/time.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/resource.h>
@@ -209,6 +211,8 @@ void *TimedEventQueue::ThreadWrapper(void *me) {
#endif
#endif


    setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_FOREGROUND);
    setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_FOREGROUND);
    set_sched_policy(androidGetTid(), SP_FOREGROUND);

    static_cast<TimedEventQueue *>(me)->threadEntry();
    static_cast<TimedEventQueue *>(me)->threadEntry();


#ifdef ANDROID_SIMULATOR
#ifdef ANDROID_SIMULATOR