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

Side by Side Diff: webrtc/modules/pacing/paced_sender.h

Issue 2994323002: Don't boost pacing rate after pause. (Closed)
Patch Set: Created 3 years, 4 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/modules/pacing/paced_sender.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 // Returns time in milliseconds when the current application-limited region 130 // Returns time in milliseconds when the current application-limited region
131 // started or empty result if the sender is currently not application-limited. 131 // started or empty result if the sender is currently not application-limited.
132 // 132 //
133 // Application Limited Region (ALR) refers to operating in a state where the 133 // Application Limited Region (ALR) refers to operating in a state where the
134 // traffic on network is limited due to application not having enough 134 // traffic on network is limited due to application not having enough
135 // traffic to meet the current channel capacity. 135 // traffic to meet the current channel capacity.
136 virtual rtc::Optional<int64_t> GetApplicationLimitedRegionStartTime() const; 136 virtual rtc::Optional<int64_t> GetApplicationLimitedRegionStartTime() const;
137 137
138 // Returns the average time since being enqueued, in milliseconds, for all 138 // Returns the average time since being enqueued, in milliseconds, for all
139 // packets currently in the pacer queue, or 0 if queue is empty. 139 // packets currently in the pacer queue, excluding any time the pacer has been
140 // paused. Returns 0 if queue is empty.
140 virtual int64_t AverageQueueTimeMs(); 141 virtual int64_t AverageQueueTimeMs();
141 142
142 // Returns the number of milliseconds until the module want a worker thread 143 // Returns the number of milliseconds until the module want a worker thread
143 // to call Process. 144 // to call Process.
144 int64_t TimeUntilNextProcess() override; 145 int64_t TimeUntilNextProcess() override;
145 146
146 // Process any pending packets in the queue(s). 147 // Process any pending packets in the queue(s).
147 void Process() override; 148 void Process() override;
148 149
149 // Called when the prober is associated with a process thread. 150 // Called when the prober is associated with a process thread.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 194
194 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_); 195 std::unique_ptr<paced_sender::PacketQueue> packets_ GUARDED_BY(critsect_);
195 uint64_t packet_counter_; 196 uint64_t packet_counter_;
196 ProcessThread* process_thread_ = nullptr; 197 ProcessThread* process_thread_ = nullptr;
197 198
198 float pacing_factor_ GUARDED_BY(critsect_); 199 float pacing_factor_ GUARDED_BY(critsect_);
199 int64_t queue_time_limit GUARDED_BY(critsect_); 200 int64_t queue_time_limit GUARDED_BY(critsect_);
200 }; 201 };
201 } // namespace webrtc 202 } // namespace webrtc
202 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_ 203 #endif // WEBRTC_MODULES_PACING_PACED_SENDER_H_
OLDNEW
« no previous file with comments | « no previous file | webrtc/modules/pacing/paced_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698