MIDI render thread was nice 0, should be nice -16.

Seems like a recent change sets the thread priority to 0. Previously it
inherited priority from the parent thread. This change sets the MIDI
render thread priority to the default for audio threads.
Reference bug 1800905
This commit is contained in:
Dave Sparks
2009-04-29 12:59:33 -07:00
parent 80f3b97121
commit c082769b67

View File

@@ -89,7 +89,7 @@ MidiFile::MidiFile() :
// create playback thread
{
Mutex::Autolock l(mMutex);
createThreadEtc(renderThread, this, "midithread");
createThreadEtc(renderThread, this, "midithread", ANDROID_PRIORITY_AUDIO);
mCondition.wait(mMutex);
LOGV("thread started");
}