aboutsummaryrefslogtreecommitdiff
path: root/audio/audio_transport_impl.h
diff options
context:
space:
mode:
authorMarkus Handell <handellm@webrtc.org>2020-07-06 15:15:07 +0200
committerCommit Bot <commit-bot@chromium.org>2020-07-06 14:21:38 +0000
commit6287280d64ece74c22a0d8dde9e20bd23e68374e (patch)
treee8f7721d86e4cbe029375bcd07d1d2a363bc5509 /audio/audio_transport_impl.h
parentafd1dcbde0407f4b104cad73ea82dead822d7e70 (diff)
downloadwebrtc-6287280d64ece74c22a0d8dde9e20bd23e68374e.tar.gz
Migrate audio/ to use webrtc::Mutex
Bug: webrtc:11567 Change-Id: Ic6a753f09aafb508690f4b8dadd4c99433fcfeb6 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/176741 Reviewed-by: Sam Zackrisson <saza@webrtc.org> Commit-Queue: Markus Handell <handellm@webrtc.org> Cr-Commit-Position: refs/heads/master@{#31635}
Diffstat (limited to 'audio/audio_transport_impl.h')
-rw-r--r--audio/audio_transport_impl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/audio_transport_impl.h b/audio/audio_transport_impl.h
index 2d9b4cf3a1..1643a29970 100644
--- a/audio/audio_transport_impl.h
+++ b/audio/audio_transport_impl.h
@@ -20,7 +20,7 @@
#include "modules/audio_processing/include/audio_processing.h"
#include "modules/audio_processing/typing_detection.h"
#include "rtc_base/constructor_magic.h"
-#include "rtc_base/critical_section.h"
+#include "rtc_base/synchronization/mutex.h"
#include "rtc_base/thread_annotations.h"
namespace webrtc {
@@ -71,7 +71,7 @@ class AudioTransportImpl : public AudioTransport {
AudioProcessing* audio_processing_ = nullptr;
// Capture side.
- rtc::CriticalSection capture_lock_;
+ mutable Mutex capture_lock_;
std::vector<AudioSender*> audio_senders_ RTC_GUARDED_BY(capture_lock_);
int send_sample_rate_hz_ RTC_GUARDED_BY(capture_lock_) = 8000;
size_t send_num_channels_ RTC_GUARDED_BY(capture_lock_) = 1;