aboutsummaryrefslogtreecommitdiff
path: root/audio/voip/voip_core.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/voip/voip_core.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/voip/voip_core.h')
-rw-r--r--audio/voip/voip_core.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/audio/voip/voip_core.h b/audio/voip/voip_core.h
index 08929d3afd..22a6559981 100644
--- a/audio/voip/voip_core.h
+++ b/audio/voip/voip_core.h
@@ -31,7 +31,7 @@
#include "modules/audio_mixer/audio_mixer_impl.h"
#include "modules/audio_processing/include/audio_processing.h"
#include "modules/utility/include/process_thread.h"
-#include "rtc_base/critical_section.h"
+#include "rtc_base/synchronization/mutex.h"
namespace webrtc {
@@ -123,7 +123,7 @@ class VoipCore : public VoipEngine,
// Must be placed before |channels_| for proper destruction.
std::unique_ptr<ProcessThread> process_thread_;
- rtc::CriticalSection lock_;
+ Mutex lock_;
// Member to track a next ChannelId for new AudioChannel.
int next_channel_id_ RTC_GUARDED_BY(lock_) = 0;