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

Side by Side Diff: webrtc/call/bitrate_allocator.h

Issue 1613643004: Remove mutable from rtc::CriticalSection members. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 11 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 | « webrtc/base/thread_unittest.cc ('k') | webrtc/call/call_perf_tests.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) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 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 * Usage: this class will register multiple RtcpBitrateObserver's one at each 10 * Usage: this class will register multiple RtcpBitrateObserver's one at each
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 BitrateObserverConfList::iterator FindObserverConfigurationPair( 82 BitrateObserverConfList::iterator FindObserverConfigurationPair(
83 const BitrateObserver* observer) EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 83 const BitrateObserver* observer) EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
84 ObserverBitrateMap AllocateBitrates() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 84 ObserverBitrateMap AllocateBitrates() EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
85 ObserverBitrateMap NormalRateAllocation(uint32_t bitrate, 85 ObserverBitrateMap NormalRateAllocation(uint32_t bitrate,
86 uint32_t sum_min_bitrates) 86 uint32_t sum_min_bitrates)
87 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 87 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
88 88
89 ObserverBitrateMap LowRateAllocation(uint32_t bitrate) 89 ObserverBitrateMap LowRateAllocation(uint32_t bitrate)
90 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_); 90 EXCLUSIVE_LOCKS_REQUIRED(crit_sect_);
91 91
92 mutable rtc::CriticalSection crit_sect_; 92 rtc::CriticalSection crit_sect_;
93 // Stored in a list to keep track of the insertion order. 93 // Stored in a list to keep track of the insertion order.
94 BitrateObserverConfList bitrate_observers_ GUARDED_BY(crit_sect_); 94 BitrateObserverConfList bitrate_observers_ GUARDED_BY(crit_sect_);
95 bool bitrate_observers_modified_ GUARDED_BY(crit_sect_); 95 bool bitrate_observers_modified_ GUARDED_BY(crit_sect_);
96 bool enforce_min_bitrate_ GUARDED_BY(crit_sect_); 96 bool enforce_min_bitrate_ GUARDED_BY(crit_sect_);
97 uint32_t last_bitrate_bps_ GUARDED_BY(crit_sect_); 97 uint32_t last_bitrate_bps_ GUARDED_BY(crit_sect_);
98 uint8_t last_fraction_loss_ GUARDED_BY(crit_sect_); 98 uint8_t last_fraction_loss_ GUARDED_BY(crit_sect_);
99 int64_t last_rtt_ GUARDED_BY(crit_sect_); 99 int64_t last_rtt_ GUARDED_BY(crit_sect_);
100 }; 100 };
101 } // namespace webrtc 101 } // namespace webrtc
102 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_ 102 #endif // WEBRTC_CALL_BITRATE_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « webrtc/base/thread_unittest.cc ('k') | webrtc/call/call_perf_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698