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

Commit bb045607 authored by Dave Sparks's avatar Dave Sparks Committed by Android Git Automerger
Browse files

am 3242cc27: Merge "TimedEventQueue is apparently important for glitch-free...

am 3242cc27: Merge "TimedEventQueue is apparently important for glitch-free media playback, and so having it inherit its priority from the thread that created it is a bad idea. Instead, set the priority explicitly, and bump it to slightly higher than normal." into fro

Merge commit '3242cc2719a4aeb64ac5ed273cf222d8d326d44b' into froyo-plus-aosp

* commit '3242cc2719a4aeb64ac5ed273cf222d8d326d44b':
  TimedEventQueue is apparently important for glitch-free media playback, and so
parents ebe43b34 17e8ad9c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -22,11 +22,13 @@
//#define LOG_NDEBUG 0
#define LOG_TAG "TimedEventQueue"
#include <utils/Log.h>
#include <utils/threads.h>

#include "include/TimedEventQueue.h"

#include <sys/prctl.h>
#include <sys/time.h>
#include <sys/resource.h>

#include <media/stagefright/MediaDebug.h>

@@ -206,6 +208,7 @@ void *TimedEventQueue::ThreadWrapper(void *me) {
    vm->AttachCurrentThread(&env, NULL);
#endif

    setpriority(PRIO_PROCESS, 0, ANDROID_PRIORITY_FOREGROUND);
    static_cast<TimedEventQueue *>(me)->threadEntry();

#ifdef ANDROID_SIMULATOR