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

Issue 2708723003: Introduce new constructor to PlatformThread. (Closed)

Created:
3 years, 10 months ago by tommi
Modified:
3 years, 10 months ago
Reviewers:
the sun
CC:
webrtc-reviews_webrtc.org, video-team_agora.io, yujie_mao (webrtc), henrika_webrtc, zhengzhonghou_agora.io, stefan-webrtc, tterriberry_mozilla.com, fengyue_agora.io, peah-webrtc, the sun, mflodman
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Introduce a new constructor to PlatformThread. The new constructor introduces two new changes: * Support specifying thread priority at construction time. - Moving forward, the SetPriority() method will be removed. * New thread function type. - The new type has 'void' as a return type and a polling loop inside PlatformThread, is not used. The old function type is still supported until all places have been moved over. In this CL, the first steps towards deprecating the old mechanism are taken by moving parts of the code that were simple to move, over to the new callback type. BUG=webrtc:7187 Review-Url: https://codereview.webrtc.org/2708723003 Cr-Commit-Position: refs/heads/master@{#16779} Committed: https://chromium.googlesource.com/external/webrtc/+/0f8b403eb536ebc721201de5a272ffb66eb5ffe1

Patch Set 1 #

Patch Set 2 : Update IncomingVideoStream #

Patch Set 3 : Update IncomingVideoStream again #

Total comments: 12

Patch Set 4 : Address comments and fix RampUp tests #

Patch Set 5 : Disable RTC_DCHECK in channel_proxy + add TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -175 lines) Patch
M webrtc/base/event_tracer.cc View 4 chunks +6 lines, -7 lines 0 comments Download
M webrtc/base/platform_thread.h View 1 2 3 4 chunks +14 lines, -3 lines 0 comments Download
M webrtc/base/platform_thread.cc View 1 2 3 5 chunks +44 lines, -9 lines 0 comments Download
M webrtc/base/platform_thread_unittest.cc View 2 chunks +48 lines, -2 lines 0 comments Download
M webrtc/base/rate_limiter_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/base/sequenced_task_checker_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/base/task_queue.h View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/base/task_queue_libevent.cc View 2 chunks +1 line, -3 lines 0 comments Download
M webrtc/base/task_queue_win.cc View 2 chunks +1 line, -3 lines 0 comments Download
M webrtc/call/rampup_tests.h View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M webrtc/call/rampup_tests.cc View 1 2 3 5 chunks +32 lines, -32 lines 0 comments Download
M webrtc/common_video/include/incoming_video_stream.h View 1 2 1 chunk +2 lines, -6 lines 0 comments Download
M webrtc/common_video/incoming_video_stream.cc View 1 2 3 chunks +34 lines, -25 lines 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/logging/rtc_event_log/rtc_event_log_helper_thread.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/modules/video_coding/frame_buffer2_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/system_wrappers/source/critical_section_unittest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webrtc/video/end_to_end_tests.cc View 1 chunk +38 lines, -38 lines 0 comments Download
M webrtc/video/video_quality_test.cc View 1 chunk +25 lines, -28 lines 0 comments Download
M webrtc/voice_engine/channel_proxy.cc View 1 2 3 4 1 chunk +6 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 32 (21 generated)
tommi
3 years, 10 months ago (2017-02-21 14:10:55 UTC) #2
tommi
Update IncomingVideoStream
3 years, 10 months ago (2017-02-21 19:01:50 UTC) #8
tommi
Update IncomingVideoStream again
3 years, 10 months ago (2017-02-21 20:08:46 UTC) #9
the sun
https://codereview.webrtc.org/2708723003/diff/40001/webrtc/base/platform_thread.cc File webrtc/base/platform_thread.cc (right): https://codereview.webrtc.org/2708723003/diff/40001/webrtc/base/platform_thread.cc#newcode102 webrtc/base/platform_thread.cc:102: RTC_DCHECK(name_.length() < 64); Where's the limit of 64 from? ...
3 years, 10 months ago (2017-02-22 13:42:58 UTC) #14
tommi
Address comments and fix RampUp tests
3 years, 10 months ago (2017-02-22 15:03:45 UTC) #15
tommi
https://codereview.webrtc.org/2708723003/diff/40001/webrtc/base/platform_thread.cc File webrtc/base/platform_thread.cc (right): https://codereview.webrtc.org/2708723003/diff/40001/webrtc/base/platform_thread.cc#newcode102 webrtc/base/platform_thread.cc:102: RTC_DCHECK(name_.length() < 64); On 2017/02/22 13:42:57, the sun wrote: ...
3 years, 10 months ago (2017-02-22 15:04:01 UTC) #16
tommi
Disable RTC_DCHECK in channel_proxy + add TODO
3 years, 10 months ago (2017-02-22 16:14:27 UTC) #21
tommi
On 2017/02/22 16:14:27, tommi (webrtc) wrote: > Disable RTC_DCHECK in channel_proxy + add TODO solenberg ...
3 years, 10 months ago (2017-02-22 16:15:50 UTC) #22
the sun
lgtm https://codereview.webrtc.org/2708723003/diff/40001/webrtc/base/platform_thread.cc File webrtc/base/platform_thread.cc (right): https://codereview.webrtc.org/2708723003/diff/40001/webrtc/base/platform_thread.cc#newcode102 webrtc/base/platform_thread.cc:102: RTC_DCHECK(name_.length() < 64); On 2017/02/22 15:04:00, tommi (webrtc) ...
3 years, 10 months ago (2017-02-22 16:31:30 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2708723003/80001
3 years, 10 months ago (2017-02-22 19:03:27 UTC) #29
commit-bot: I haz the power
3 years, 10 months ago (2017-02-22 19:22:11 UTC) #32
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/external/webrtc/+/0f8b403eb536ebc721201de5a...

Powered by Google App Engine
This is Rietveld 408576698