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

Commit 09468dbb authored by Steve Howard's avatar Steve Howard
Browse files

Add a name to the previously-unnamed thread created by SoundPoolThread.

SoundPool itself also creates a thread, which was called "SoundPoolThread", unrelated to the SoundPoolThread class.  The SoundPoolThread class then created an unnamed thread, which showed up as "android:unnamed_thread".  That's confusing, so this change renames the SoundPool thread to "SoundPool" and then names the SoundPoolThread thread as "SoundPoolThread".  Say that ten times fast :)

Change-Id: I67b7e644a30c94b6eda44bf970764a52a1c2958b
parent eb3035cb
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -144,7 +144,7 @@ void SoundPool::quit()

bool SoundPool::startThreads()
{
    createThreadEtc(beginThread, this, "SoundPoolThread");
    createThreadEtc(beginThread, this, "SoundPool");
    if (mDecodeThread == NULL)
        mDecodeThread = new SoundPoolThread(this);
    return mDecodeThread != NULL;
@@ -827,4 +827,3 @@ void SoundEvent::set(const sp<Sample>& sample, int channelID, float leftVolume,
}

} // end namespace android
+1 −1
Original line number Diff line number Diff line
@@ -62,7 +62,7 @@ SoundPoolThread::SoundPoolThread(SoundPool* soundPool) :
    mSoundPool(soundPool)
{
    mMsgQueue.setCapacity(maxMessages);
    if (createThread(beginThread, this)) {
    if (createThreadEtc(beginThread, this, "SoundPoolThread")) {
        mRunning = true;
    }
}