forked from open-webrtc-toolkit/owt-deps-webrtc
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor handling of TransportSequenceNumber in PacketRouter
The use of SetTransportWideSequenceNumber() and AllocateSequenceNumber() is gone from webrtc, but some downstream code still references them. This means we can do some simplifications. The member that stores the sequence number is now always accessed while holding the modules lock, so we can just use that and don't need to add atomic operations on top. SetTransportWideSequenceNumber() is only used to set the start sequence number, it would be nice to set that in the constructor instead. AllocateSequnceNumber() is now actually only used as a getter, so this can be replace by a proper const getter method instead. Bug: webrtc:11036 Change-Id: I69b06e613ca3361cf24ef835b92dd0a894cbd27e Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/157167 Reviewed-by: Sebastian Jansson <srte@webrtc.org> Commit-Queue: Erik Språng <sprang@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29507}
- Loading branch information
Erik Språng
authored and
Commit Bot
committed
Oct 17, 2019
1 parent
a6d7b02
commit 5f01bf6
Showing
3 changed files
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters