OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2016 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 capture_time_ms(capture_time_ms), | 57 capture_time_ms(capture_time_ms), |
58 send_time_ms(send_time_ms) {} | 58 send_time_ms(send_time_ms) {} |
59 uint32_t ssrc; | 59 uint32_t ssrc; |
60 int64_t capture_time_ms; | 60 int64_t capture_time_ms; |
61 int64_t send_time_ms; | 61 int64_t send_time_ms; |
62 }; | 62 }; |
63 typedef std::map<uint16_t, Packet, SequenceNumberOlderThan> PacketMap; | 63 typedef std::map<uint16_t, Packet, SequenceNumberOlderThan> PacketMap; |
64 | 64 |
65 void UpdateHistograms(); | 65 void UpdateHistograms(); |
66 void RemoveOld(int64_t now, PacketMap* packets) | 66 void RemoveOld(int64_t now, PacketMap* packets) |
67 EXCLUSIVE_LOCKS_REQUIRED(crit_); | 67 RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_); |
68 AvgCounter* GetSendDelayCounter(uint32_t ssrc) | 68 AvgCounter* GetSendDelayCounter(uint32_t ssrc) |
69 EXCLUSIVE_LOCKS_REQUIRED(crit_); | 69 RTC_EXCLUSIVE_LOCKS_REQUIRED(crit_); |
70 | 70 |
71 Clock* const clock_; | 71 Clock* const clock_; |
72 rtc::CriticalSection crit_; | 72 rtc::CriticalSection crit_; |
73 | 73 |
74 PacketMap packets_ GUARDED_BY(crit_); | 74 PacketMap packets_ RTC_GUARDED_BY(crit_); |
75 size_t num_old_packets_ GUARDED_BY(crit_); | 75 size_t num_old_packets_ RTC_GUARDED_BY(crit_); |
76 size_t num_skipped_packets_ GUARDED_BY(crit_); | 76 size_t num_skipped_packets_ RTC_GUARDED_BY(crit_); |
77 | 77 |
78 std::set<uint32_t> ssrcs_ GUARDED_BY(crit_); | 78 std::set<uint32_t> ssrcs_ RTC_GUARDED_BY(crit_); |
79 | 79 |
80 // Mapped by SSRC. | 80 // Mapped by SSRC. |
81 std::map<uint32_t, std::unique_ptr<AvgCounter>> send_delay_counters_ | 81 std::map<uint32_t, std::unique_ptr<AvgCounter>> send_delay_counters_ |
82 GUARDED_BY(crit_); | 82 RTC_GUARDED_BY(crit_); |
83 }; | 83 }; |
84 | 84 |
85 } // namespace webrtc | 85 } // namespace webrtc |
86 #endif // WEBRTC_VIDEO_SEND_DELAY_STATS_H_ | 86 #endif // WEBRTC_VIDEO_SEND_DELAY_STATS_H_ |
OLD | NEW |