From 3632ca1c6ebd2cee417fc55a3aeca7d159d430ce Mon Sep 17 00:00:00 2001 From: "leozwang@webrtc.org" Date: Mon, 1 Oct 2012 17:58:32 +0000 Subject: [PATCH] Make thread name readable in log Shorten thread name to make more readable when run top on android Review URL: https://webrtc-codereview.appspot.com/851006 git-svn-id: http://webrtc.googlecode.com/svn/trunk@2856 4adac7df-926f-26a2-2b94-8c16560cd09d --- src/modules/audio_device/android/audio_device_android_jni.cc | 4 ++-- .../audio_device/android/audio_device_android_opensles.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/audio_device/android/audio_device_android_jni.cc b/src/modules/audio_device/android/audio_device_android_jni.cc index 23df34aeec..9f48c40eb7 100644 --- a/src/modules/audio_device/android/audio_device_android_jni.cc +++ b/src/modules/audio_device/android/audio_device_android_jni.cc @@ -243,7 +243,7 @@ WebRtc_Word32 AudioDeviceAndroidJni::Init() } // RECORDING - const char* threadName = "webrtc_jni_audio_capture_thread"; + const char* threadName = "jni_audio_capture_thread"; _ptrThreadRec = ThreadWrapper::CreateThread(RecThreadFunc, this, kRealtimePriority, threadName); if (_ptrThreadRec == NULL) @@ -265,7 +265,7 @@ WebRtc_Word32 AudioDeviceAndroidJni::Init() _recThreadID = threadID; // PLAYOUT - threadName = "webrtc_jni_audio_render_thread"; + threadName = "jni_audio_render_thread"; _ptrThreadPlay = ThreadWrapper::CreateThread(PlayThreadFunc, this, kRealtimePriority, threadName); if (_ptrThreadPlay == NULL) diff --git a/src/modules/audio_device/android/audio_device_android_opensles.cc b/src/modules/audio_device/android/audio_device_android_opensles.cc index 451766deae..f383c79eda 100644 --- a/src/modules/audio_device/android/audio_device_android_opensles.cc +++ b/src/modules/audio_device/android/audio_device_android_opensles.cc @@ -1076,7 +1076,7 @@ WebRtc_Word32 AudioDeviceAndroidOpenSLES::StartRecording() { rec_available_queue_.push(rec_buffer_[i]); } - const char* threadName = "webrtc_opensles_audio_capture_thread"; + const char* threadName = "sles_audio_capture_thread"; _ptrThreadRec = ThreadWrapper::CreateThread(RecThreadFunc, this, kRealtimePriority, threadName); if (_ptrThreadRec == NULL)