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

Side by Side Diff: webrtc/video/send_delay_stats.h

Issue 3012853002: Update thread annotiation macros to use RTC_ prefix (Closed)
Patch Set: Rebase Created 3 years, 3 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/video/rtp_video_stream_receiver.h ('k') | webrtc/video/send_statistics_proxy.h » ('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) 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
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_
OLDNEW
« no previous file with comments | « webrtc/video/rtp_video_stream_receiver.h ('k') | webrtc/video/send_statistics_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698