Remove locks in SendSideBandwidthEstimation since those are only accessed while owning locks in

BitrateControllerImpl (excluding AvailableBandwidth).

 + Refactor BitrateController logic around LowRate allocation so access to SendSideBandwidthEstimation
is clear.
 + Refactor NormalRateAllocation away from OnNetworkChange.
 + Annotate BitrateController locks.

R=henrik.lundin@webrtc.org, stefan@webrtc.org
BUG=3065

Review URL: https://webrtc-codereview.appspot.com/10129004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5749 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
andresp@webrtc.org
2014-03-21 14:00:51 +00:00
parent b28bfa7efc
commit 16b75c2c7a
4 changed files with 94 additions and 141 deletions

View File

@ -56,8 +56,6 @@ class SendSideBandwidthEstimation {
enum { kLimitNumPackets = 20 };
enum { kAvgPacketSizeBytes = 1000 };
CriticalSectionWrapper* critsect_;
// incoming filters
int accumulate_lost_packets_Q8_;
int accumulate_expected_packets_;