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

Issue 1469013002: Move ThreadWrapper to ProcessThread in base. (Closed)

Created:
5 years, 1 month ago by pbos-webrtc
Modified:
5 years, 1 month ago
Reviewers:
tommi
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), kwiberg-webrtc, henrika_webrtc, Andrew MacDonald, stefan-webrtc, tlegrand-webrtc, tterriberry_mozilla.com, hlundin-webrtc, mflodman, peah-webrtc, minyue-webrtc, the sun, andresp, perkj_webrtc, aluebs-webrtc, bjornv1
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Move ThreadWrapper to ProcessThread in base. Also removes all virtual methods. Permits using a thread from rtc_base_approved (namely event tracing). BUG=webrtc:5158 R=tommi@webrtc.org Committed: https://crrev.com/12411ef40e08c5e28ccde54ab3418c96676ffcbc Cr-Commit-Position: refs/heads/master@{#10760}

Patch Set 1 #

Patch Set 2 : make constructor public #

Patch Set 3 : rebase #

Patch Set 4 : include string for name_ #

Patch Set 5 : remove duplicate win ThreadChecker #

Total comments: 16

Patch Set 6 : rebase #

Patch Set 7 : threadchecker + split out platform_thread_tyeps.h #

Patch Set 8 : feedback from the tomminator #

Patch Set 9 : we don't need no stinkin std::move #

Total comments: 7

Patch Set 10 : removed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+526 lines, -855 lines) Patch
M webrtc/base/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/base.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/base_tests.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/base/platform_thread.h View 1 2 3 4 5 6 7 8 2 chunks +99 lines, -15 lines 0 comments Download
M webrtc/base/platform_thread.cc View 1 2 3 4 5 6 7 8 3 chunks +186 lines, -3 lines 0 comments Download
A + webrtc/base/platform_thread_types.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -14 lines 0 comments Download
A + webrtc/base/platform_thread_unittest.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -6 lines 0 comments Download
M webrtc/base/thread_checker_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M webrtc/base/thread_checker_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M webrtc/common_video/include/incoming_video_stream.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/common_video/incoming_video_stream.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/common_video/interface/incoming_video_stream.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_coding/main/acm2/audio_coding_module_unittest_oldapi.cc View 1 2 3 4 5 6 7 8 6 chunks +17 lines, -15 lines 0 comments Download
M webrtc/modules/audio_coding/main/test/APITest.cc View 2 chunks +17 lines, -17 lines 0 comments Download
M webrtc/modules/audio_device/dummy/file_audio_device.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_device/dummy/file_audio_device.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_alsa_linux.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_alsa_linux.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_pulse_linux.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/modules/audio_device/linux/audio_device_pulse_linux.cc View 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/modules/audio_device/mac/audio_device_mac.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_device/mac/audio_device_mac.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/modules/audio_device/test/func_test_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/audio_device/win/audio_device_wave_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/audio_device/win/audio_device_wave_win.cc View 4 chunks +6 lines, -14 lines 0 comments Download
M webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc View 3 chunks +12 lines, -11 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestLoadGenerator.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestSenderReceiver.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/rtp_rtcp/test/BWEStandAlone/TestSenderReceiver.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/utility/source/file_recorder_impl.h View 2 chunks +1 line, -1 line 0 comments Download
M webrtc/modules/utility/source/process_thread_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/utility/source/process_thread_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_capture/linux/video_capture_linux.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_capture/linux/video_capture_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/modules/video_render/android/video_render_android_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_render/android/video_render_android_impl.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_render/ios/video_render_ios_gles20.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_render/ios/video_render_ios_gles20.mm View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_render/mac/video_render_agl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_render/mac/video_render_agl.cc View 5 chunks +7 lines, -7 lines 0 comments Download
M webrtc/modules/video_render/mac/video_render_nsopengl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_render/mac/video_render_nsopengl.mm View 4 chunks +5 lines, -5 lines 0 comments Download
M webrtc/modules/video_render/windows/video_render_direct3d9.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/modules/video_render/windows/video_render_direct3d9.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/system_wrappers/BUILD.gn View 3 chunks +1 line, -7 lines 0 comments Download
M webrtc/system_wrappers/include/data_log_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
D webrtc/system_wrappers/include/thread_wrapper.h View 1 2 3 4 5 1 chunk +0 lines, -89 lines 0 comments Download
M webrtc/system_wrappers/source/condition_variable_unittest.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/system_wrappers/source/critical_section_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/system_wrappers/source/data_log.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/system_wrappers/source/event_timer_posix.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/system_wrappers/source/event_timer_posix.cc View 1 chunk +1 line, -1 line 0 comments Download
D webrtc/system_wrappers/source/thread.cc View 1 chunk +0 lines, -33 lines 0 comments Download
D webrtc/system_wrappers/source/thread_posix.h View 1 chunk +0 lines, -53 lines 0 comments Download
D webrtc/system_wrappers/source/thread_posix.cc View 1 2 3 4 5 1 chunk +0 lines, -161 lines 0 comments Download
D webrtc/system_wrappers/source/thread_posix_unittest.cc View 1 chunk +0 lines, -30 lines 0 comments Download
D webrtc/system_wrappers/source/thread_unittest.cc View 1 chunk +0 lines, -53 lines 0 comments Download
D webrtc/system_wrappers/source/thread_win.h View 1 chunk +0 lines, -48 lines 0 comments Download
D webrtc/system_wrappers/source/thread_win.cc View 1 2 3 4 5 1 chunk +0 lines, -101 lines 0 comments Download
M webrtc/system_wrappers/source/trace_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/system_wrappers/system_wrappers.gyp View 2 chunks +0 lines, -6 lines 0 comments Download
M webrtc/system_wrappers/system_wrappers_tests.gyp View 2 chunks +0 lines, -5 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket2_manager_win.h View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket2_manager_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/test/channel_transport/udp_socket2_win.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket_manager_posix.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/test/channel_transport/udp_socket_manager_posix.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/test/direct_transport.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/test/direct_transport.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/test/fake_audio_device.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/test/fake_audio_device.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/test/frame_generator_capturer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/test/frame_generator_capturer.cc View 2 chunks +4 lines, -4 lines 0 comments Download
M webrtc/video/rampup_tests.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/video/rampup_tests.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M webrtc/video/video_capture_input.h View 3 chunks +2 lines, -2 lines 0 comments Download
M webrtc/video/video_capture_input.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 2 3 4 5 2 chunks +6 lines, -6 lines 0 comments Download
M webrtc/video/video_send_stream_tests.cc View 2 chunks +1 line, -1 line 0 comments Download
M webrtc/video_engine/vie_channel.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/video_engine/vie_channel.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/test/android/android_test/jni/android_test.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fakes/conference_transport.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fakes/conference_transport.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/fixtures/after_initialization_fixture.h View 4 chunks +5 lines, -5 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_standard_test.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_stress_test.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/voice_engine/test/auto_test/voe_stress_test.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (9 generated)
pbos-webrtc
make constructor public
5 years, 1 month ago (2015-11-23 12:33:55 UTC) #1
pbos-webrtc
PTAL, lemme know if I can bribe you somehow. :)
5 years, 1 month ago (2015-11-23 12:35:02 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469013002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469013002/20001
5 years, 1 month ago (2015-11-23 12:35:28 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_x64_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_compile_x64_dbg/builds/8) android_compile_x86_dbg on ...
5 years, 1 month ago (2015-11-23 12:36:32 UTC) #6
pbos-webrtc
rebase
5 years, 1 month ago (2015-11-23 12:40:25 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469013002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469013002/40001
5 years, 1 month ago (2015-11-23 12:41:16 UTC) #9
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_gn_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_gn_rel/builds/7162) mac_compile_dbg on ...
5 years, 1 month ago (2015-11-23 12:43:45 UTC) #11
pbos-webrtc
include string for name_
5 years, 1 month ago (2015-11-23 13:22:52 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469013002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469013002/60001
5 years, 1 month ago (2015-11-23 13:23:22 UTC) #14
pbos-webrtc
remove duplicate win ThreadChecker
5 years, 1 month ago (2015-11-23 13:27:28 UTC) #15
pbos-webrtc
rebase
5 years, 1 month ago (2015-11-23 14:45:04 UTC) #16
tommi
first set of comments. Didn't look through every file but assume there's a lot of ...
5 years, 1 month ago (2015-11-23 14:49:12 UTC) #17
tommi
I guess most importantly - do you intend to do the 'no vtable' change now ...
5 years, 1 month ago (2015-11-23 14:49:43 UTC) #18
pbos-webrtc
threadchecker + split out platform_thread_tyeps.h
5 years, 1 month ago (2015-11-23 14:55:10 UTC) #19
pbos-webrtc
feedback from the tomminator
5 years, 1 month ago (2015-11-23 15:05:10 UTC) #20
pbos-webrtc
PTAL, the vtables are gone now but I'd like to follow up with CreateThread removal ...
5 years, 1 month ago (2015-11-23 15:05:40 UTC) #21
pbos-webrtc
we don't need no stinkin std::move
5 years, 1 month ago (2015-11-23 15:20:40 UTC) #22
tommi
lgtm % nits. I didn't review some of the files since I'm assuming this is ...
5 years, 1 month ago (2015-11-23 15:54:29 UTC) #23
pbos-webrtc
removed comment
5 years, 1 month ago (2015-11-23 16:18:04 UTC) #24
pbos-webrtc
https://codereview.webrtc.org/1469013002/diff/150001/webrtc/base/platform_thread.cc File webrtc/base/platform_thread.cc (left): https://codereview.webrtc.org/1469013002/diff/150001/webrtc/base/platform_thread.cc#oldcode61 webrtc/base/platform_thread.cc:61: RTC_DCHECK(strlen(name) < 64); On 2015/11/23 15:54:28, tommi (webrtc) wrote: ...
5 years, 1 month ago (2015-11-23 16:18:23 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469013002/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469013002/170001
5 years, 1 month ago (2015-11-23 16:19:32 UTC) #28
tommi
lgtm https://codereview.webrtc.org/1469013002/diff/150001/webrtc/base/platform_thread.h File webrtc/base/platform_thread.h (right): https://codereview.webrtc.org/1469013002/diff/150001/webrtc/base/platform_thread.h#newcode36 webrtc/base/platform_thread.h:36: namespace webrtc { On 2015/11/23 16:18:22, pbos-webrtc wrote: ...
5 years, 1 month ago (2015-11-23 16:51:50 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 1 month ago (2015-11-23 18:19:50 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1469013002/170001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1469013002/170001
5 years, 1 month ago (2015-11-23 22:45:59 UTC) #33
commit-bot: I haz the power
Committed patchset #10 (id:170001)
5 years, 1 month ago (2015-11-23 22:48:00 UTC) #34
commit-bot: I haz the power
5 years, 1 month ago (2015-11-23 22:48:05 UTC) #35
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/12411ef40e08c5e28ccde54ab3418c96676ffcbc
Cr-Commit-Position: refs/heads/master@{#10760}

Powered by Google App Engine
This is Rietveld 408576698