Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Issue 1337003003: Add a name to the ProcessThread constructor. (Closed)

Created:
5 years, 3 months ago by stefan-webrtc
Modified:
5 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), stefan-webrtc, tterriberry_mozilla.com, hlundin-webrtc, mflodman, perkj_webrtc, andresp
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add a name to the ProcessThread constructor. Helps differentiate between different instances when debugging. Committed: https://crrev.com/847855b865987524be768c7771959f927db25808 Cr-Commit-Position: refs/heads/master@{#9927}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments addressed. #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -32 lines) Patch
M webrtc/modules/audio_device/test/audio_device_test_api.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/test/func_test_manager.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M webrtc/modules/utility/interface/process_thread.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/utility/source/process_thread_impl.h View 1 2 chunks +2 lines, -1 line 4 comments Download
M webrtc/modules/utility/source/process_thread_impl.cc View 1 2 chunks +10 lines, -7 lines 0 comments Download
M webrtc/modules/utility/source/process_thread_impl_unittest.cc View 8 chunks +9 lines, -9 lines 0 comments Download
M webrtc/modules/video_capture/test/video_capture_unittest.cc View 1 chunk +1 line, -1 line 2 comments Download
M webrtc/video/call.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video_engine/vie_channel_group.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/shared_data.cc View 1 chunk +7 lines, -8 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1337003003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1337003003/1
5 years, 3 months ago (2015-09-11 13:31:36 UTC) #2
stefan-webrtc
5 years, 3 months ago (2015-09-11 13:32:18 UTC) #4
pbos-webrtc
https://codereview.webrtc.org/1337003003/diff/1/webrtc/modules/utility/source/process_thread_impl.h File webrtc/modules/utility/source/process_thread_impl.h (right): https://codereview.webrtc.org/1337003003/diff/1/webrtc/modules/utility/source/process_thread_impl.h#newcode28 webrtc/modules/utility/source/process_thread_impl.h:28: ProcessThreadImpl(const std::string& thread_name); explicit, and const char* if you ...
5 years, 3 months ago (2015-09-11 13:37:22 UTC) #5
stefan-webrtc
https://codereview.webrtc.org/1337003003/diff/1/webrtc/modules/utility/source/process_thread_impl.h File webrtc/modules/utility/source/process_thread_impl.h (right): https://codereview.webrtc.org/1337003003/diff/1/webrtc/modules/utility/source/process_thread_impl.h#newcode28 webrtc/modules/utility/source/process_thread_impl.h:28: ProcessThreadImpl(const std::string& thread_name); On 2015/09/11 13:37:22, pbos-webrtc wrote: > ...
5 years, 3 months ago (2015-09-11 13:43:54 UTC) #6
pbos-webrtc
lgtm
5 years, 3 months ago (2015-09-11 13:45:46 UTC) #7
henrika_webrtc
LGTM
5 years, 3 months ago (2015-09-11 14:52:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1337003003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1337003003/20001
5 years, 3 months ago (2015-09-11 15:59:05 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 3 months ago (2015-09-11 16:52:20 UTC) #11
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/847855b865987524be768c7771959f927db25808 Cr-Commit-Position: refs/heads/master@{#9927}
5 years, 3 months ago (2015-09-11 16:52:33 UTC) #12
tommi
nice! thanks for doing this. drive-by nits, but lgtm. https://codereview.webrtc.org/1337003003/diff/20001/webrtc/modules/utility/source/process_thread_impl.h File webrtc/modules/utility/source/process_thread_impl.h (right): https://codereview.webrtc.org/1337003003/diff/20001/webrtc/modules/utility/source/process_thread_impl.h#newcode28 webrtc/modules/utility/source/process_thread_impl.h:28: ...
5 years, 3 months ago (2015-09-12 09:49:32 UTC) #14
stefan-webrtc
5 years, 3 months ago (2015-09-14 11:42:54 UTC) #15
Message was sent while issue was closed.
https://codereview.webrtc.org/1337003003/diff/20001/webrtc/modules/utility/so...
File webrtc/modules/utility/source/process_thread_impl.h (right):

https://codereview.webrtc.org/1337003003/diff/20001/webrtc/modules/utility/so...
webrtc/modules/utility/source/process_thread_impl.h:28: explicit
ProcessThreadImpl(const char* thread_name);
On 2015/09/12 09:49:32, tommi (webrtc) wrote:
> does using |const char*| here and not |const std::string&| mean that we expect
> only static strings to be provided as names?  If so, then I think thread_name_
> should be of type const char*.  If we want to allow dynamically changing
names,
> then I'd go with const std::string&.

I can live with only having static strings for this for now, as I don't see
anywhere we'd like to have dynamic naming.

https://codereview.webrtc.org/1337003003/diff/20001/webrtc/modules/utility/so...
webrtc/modules/utility/source/process_thread_impl.h:79: std::string
thread_name_;
On 2015/09/12 09:49:32, tommi (webrtc) wrote:
> if we stick with std::string, then I think we should make this const
> std::string.

Done.

https://codereview.webrtc.org/1337003003/diff/20001/webrtc/modules/video_capt...
File webrtc/modules/video_capture/test/video_capture_unittest.cc (right):

https://codereview.webrtc.org/1337003003/diff/20001/webrtc/modules/video_capt...
webrtc/modules/video_capture/test/video_capture_unittest.cc:432: process_module_
= webrtc::ProcessThread::Create("ProcessThread");
On 2015/09/12 09:49:32, tommi (webrtc) wrote:
> nit: use "VideoCaptureExternalTest"? 

Do you mean renaming the process thread to VideoCaptureExternalTest?

Powered by Google App Engine
This is Rietveld 408576698