summaryrefslogtreecommitdiffstats
path: root/media/jni/soundpool/SoundPool.cpp
diff options
context:
space:
mode:
authorSteve Howard <showard@google.com>2010-03-11 13:51:52 -0800
committerSteve Howard <showard@google.com>2010-03-11 13:59:54 -0800
commit09468dbbe9d91214a171a2b2f43bd37795f0b8c1 (patch)
tree152b93c63c2b87701d879b537876833a427f5d16 /media/jni/soundpool/SoundPool.cpp
parenteb3035cbcad06a9154f69e9bb22231b0632946b2 (diff)
downloadframeworks_base-09468dbbe9d91214a171a2b2f43bd37795f0b8c1.zip
frameworks_base-09468dbbe9d91214a171a2b2f43bd37795f0b8c1.tar.gz
frameworks_base-09468dbbe9d91214a171a2b2f43bd37795f0b8c1.tar.bz2
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
Diffstat (limited to 'media/jni/soundpool/SoundPool.cpp')
-rw-r--r--media/jni/soundpool/SoundPool.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/media/jni/soundpool/SoundPool.cpp b/media/jni/soundpool/SoundPool.cpp
index 2012b3d..fef880b 100644
--- a/media/jni/soundpool/SoundPool.cpp
+++ b/media/jni/soundpool/SoundPool.cpp
@@ -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
-