Migrate leftovers in media/ and modules/ to webrtc::Mutex.

Bug: webrtc:11567
Change-Id: Id40a53fcec6cba1cd5af70422291ba46b0a6da8c
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/178905
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Magnus Flodman <mflodman@webrtc.org>
Commit-Queue: Markus Handell <handellm@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#31694}
This commit is contained in:
Markus Handell
2020-07-09 01:34:42 +02:00
committed by Commit Bot
parent 85585f4a52
commit f7303e6486
8 changed files with 143 additions and 164 deletions

View File

@ -712,7 +712,7 @@ bool ModuleRtpRtcpImpl2::LastReceivedNTP(
void ModuleRtpRtcpImpl2::set_rtt_ms(int64_t rtt_ms) {
RTC_DCHECK_RUN_ON(worker_queue_);
{
rtc::CritScope cs(&critical_section_rtt_);
MutexLock lock(&mutex_rtt_);
rtt_ms_ = rtt_ms;
}
if (rtp_sender_) {
@ -721,7 +721,7 @@ void ModuleRtpRtcpImpl2::set_rtt_ms(int64_t rtt_ms) {
}
int64_t ModuleRtpRtcpImpl2::rtt_ms() const {
rtc::CritScope cs(&critical_section_rtt_);
MutexLock lock(&mutex_rtt_);
return rtt_ms_;
}