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

Issue 2755273004: Add thread check to ModuleProcessThread::DeRegisterModule (Closed)

Created:
3 years, 9 months ago by tommi
Modified:
3 years, 9 months ago
Reviewers:
the sun
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add thread check to ModuleProcessThread::DeRegisterModule and remove all unnecessary locking that was there due to one implementation calling from a different thread. The only thing that was holding us back was the indeterministic teardown of voe::Channel(), but it turned out that fixing it wasn't that hard :) BUG=webrtc:4508 Review-Url: https://codereview.webrtc.org/2755273004 Cr-Commit-Position: refs/heads/master@{#17315} Committed: https://chromium.googlesource.com/external/webrtc/+/0a2391f74c001357c661d4fe39671cc82175d5c4

Patch Set 1 #

Patch Set 2 : Make voe::Channel termination deterministic and remove locks #

Patch Set 3 : Remove TODO #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -71 lines) Patch
M webrtc/modules/utility/source/process_thread_impl.cc View 1 4 chunks +6 lines, -29 lines 0 comments Download
M webrtc/voice_engine/channel.h View 1 3 chunks +4 lines, -0 lines 0 comments Download
M webrtc/voice_engine/channel.cc View 1 2 3 chunks +53 lines, -42 lines 2 comments Download
M webrtc/voice_engine/channel_manager.cc View 1 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (17 generated)
tommi
Make voe::Channel termination deterministic and remove locks
3 years, 9 months ago (2017-03-18 23:39:40 UTC) #5
tommi
Remove TODO
3 years, 9 months ago (2017-03-18 23:42:10 UTC) #8
tommi
please take a look
3 years, 9 months ago (2017-03-18 23:48:00 UTC) #11
the sun
lgtm https://codereview.webrtc.org/2755273004/diff/40001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2755273004/diff/40001/webrtc/voice_engine/channel.cc#newcode1053 webrtc/voice_engine/channel.cc:1053: StopSend(); StopSend() looks like it has races. I'm ...
3 years, 9 months ago (2017-03-20 19:11:13 UTC) #18
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/2755273004/40001
3 years, 9 months ago (2017-03-21 09:06:56 UTC) #20
tommi
https://codereview.webrtc.org/2755273004/diff/40001/webrtc/voice_engine/channel.cc File webrtc/voice_engine/channel.cc (right): https://codereview.webrtc.org/2755273004/diff/40001/webrtc/voice_engine/channel.cc#newcode1053 webrtc/voice_engine/channel.cc:1053: StopSend(); On 2017/03/20 19:11:12, the sun wrote: > StopSend() ...
3 years, 9 months ago (2017-03-21 09:07:45 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 09:31:56 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/webrtc/+/0a2391f74c001357c661d4fe3...

Powered by Google App Engine
This is Rietveld 408576698