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

Unified Diff: webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc

Issue 2589583004: Add GUARDED_BY's in FlexfecReceiver. (Closed)
Patch Set: Created 4 years 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 | « webrtc/modules/rtp_rtcp/include/flexfec_receiver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc
diff --git a/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc b/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc
index 2c974754915cad4a28188b823bb9f1f949e96d95..369dd31ae103d42a5dd8a9ba4cfa2dca8a3e0f85 100644
--- a/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc
+++ b/webrtc/modules/rtp_rtcp/source/flexfec_receiver.cc
@@ -49,8 +49,7 @@ FlexfecReceiver::~FlexfecReceiver() = default;
bool FlexfecReceiver::AddAndProcessReceivedPacket(const uint8_t* packet,
size_t packet_length) {
- RTC_DCHECK(sequence_checker_.CalledSequentially());
-
+ RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_);
if (!AddReceivedPacket(packet, packet_length)) {
return false;
}
@@ -58,13 +57,13 @@ bool FlexfecReceiver::AddAndProcessReceivedPacket(const uint8_t* packet,
}
FecPacketCounter FlexfecReceiver::GetPacketCounter() const {
- RTC_DCHECK(sequence_checker_.CalledSequentially());
+ RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_);
return packet_counter_;
}
bool FlexfecReceiver::AddReceivedPacket(const uint8_t* packet,
size_t packet_length) {
- RTC_DCHECK(sequence_checker_.CalledSequentially());
+ RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_);
// RTP packets with a full base header (12 bytes), but without payload,
// could conceivably be useful in the decoding. Therefore we check
@@ -130,7 +129,7 @@ bool FlexfecReceiver::AddReceivedPacket(const uint8_t* packet,
// FlexFEC decoder, and we therefore do not interfere with the reception
// of non-recovered media packets.
bool FlexfecReceiver::ProcessReceivedPackets() {
- RTC_DCHECK(sequence_checker_.CalledSequentially());
+ RTC_DCHECK_CALLED_SEQUENTIALLY(&sequence_checker_);
// Decode.
if (!received_packets_.empty()) {
« no previous file with comments | « webrtc/modules/rtp_rtcp/include/flexfec_receiver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698