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

Unified Diff: webrtc/voice_engine/channel.h

Issue 2861583005: Resolves race between Channel::ProcessAndEncodeAudio() and Channel::StopSend() (Closed)
Patch Set: Added one extra lock Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/voice_engine/channel.h
diff --git a/webrtc/voice_engine/channel.h b/webrtc/voice_engine/channel.h
index d5eb5d954c0753d3fffb5fb1ad5ba045e5151670..b7b59a447c7ba35e304e7da5025271357c808849 100644
--- a/webrtc/voice_engine/channel.h
+++ b/webrtc/voice_engine/channel.h
@@ -546,6 +546,10 @@ class Channel
const bool use_twcc_plr_for_ana_;
+ rtc::CriticalSection encoder_queue_lock_;
+
+ bool encoder_queue_is_active_ GUARDED_BY(encoder_queue_lock_) = false;
+
rtc::TaskQueue* encoder_queue_ = nullptr;
};
« no previous file with comments | « no previous file | webrtc/voice_engine/channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698