Index: webrtc/modules/pacing/packet_router.cc |
diff --git a/webrtc/modules/pacing/packet_router.cc b/webrtc/modules/pacing/packet_router.cc |
index 301585fb960cad5b2303a348420d2b8b4c98a27e..5fd350834a5e1ec6231966d0e7e207f79b5e5b99 100644 |
--- a/webrtc/modules/pacing/packet_router.cc |
+++ b/webrtc/modules/pacing/packet_router.cc |
@@ -18,7 +18,8 @@ |
namespace webrtc { |
-PacketRouter::PacketRouter() : transport_seq_({0}) {} |
+PacketRouter::PacketRouter() : transport_seq_(0) { |
+} |
PacketRouter::~PacketRouter() { |
RTC_DCHECK(rtp_modules_.empty()); |
@@ -68,11 +69,11 @@ |
} |
void PacketRouter::SetTransportWideSequenceNumber(uint16_t sequence_number) { |
- rtc::AtomicInt::ReleaseStore(&transport_seq_, sequence_number); |
+ rtc::AtomicOps::ReleaseStore(&transport_seq_, sequence_number); |
} |
uint16_t PacketRouter::AllocateSequenceNumber() { |
- int prev_seq = rtc::AtomicInt::AcquireLoad(&transport_seq_); |
+ int prev_seq = rtc::AtomicOps::AcquireLoad(&transport_seq_); |
int desired_prev_seq; |
int new_seq; |
do { |
@@ -82,7 +83,7 @@ |
// time the CAS operation was executed. Thus, if prev_seq is returned, the |
// operation was successful - otherwise we need to retry. Saving the |
// return value saves us a load on retry. |
- prev_seq = rtc::AtomicInt::CompareAndSwap(&transport_seq_, desired_prev_seq, |
+ prev_seq = rtc::AtomicOps::CompareAndSwap(&transport_seq_, desired_prev_seq, |
new_seq); |
} while (prev_seq != desired_prev_seq); |