OLD | NEW |
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 | 10 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 rtc::CriticalSection bwe_lock_; | 66 rtc::CriticalSection bwe_lock_; |
67 int transport_overhead_bytes_per_packet_ GUARDED_BY(&lock_); | 67 int transport_overhead_bytes_per_packet_ GUARDED_BY(&lock_); |
68 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); | 68 SendTimeHistory send_time_history_ GUARDED_BY(&lock_); |
69 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(&bwe_lock_); | 69 std::unique_ptr<DelayBasedBwe> delay_based_bwe_ GUARDED_BY(&bwe_lock_); |
70 RtcEventLog* const event_log_; | 70 RtcEventLog* const event_log_; |
71 Clock* const clock_; | 71 Clock* const clock_; |
72 int64_t current_offset_ms_; | 72 int64_t current_offset_ms_; |
73 int64_t last_timestamp_us_; | 73 int64_t last_timestamp_us_; |
74 BitrateController* const bitrate_controller_; | 74 BitrateController* const bitrate_controller_; |
75 std::vector<PacketInfo> last_packet_feedback_vector_; | 75 std::vector<PacketInfo> last_packet_feedback_vector_; |
| 76 |
| 77 // Three main threads are in play: |
| 78 // |
| 79 // 1. Data packetized and scheduled for transmission (AddPacket). |
| 80 // 2. After socket sends the data, a notification is produced (OnSentPacket). |
| 81 // The same thread is also the one on which feedbacks are |
| 82 // received (OnTransportFeedback). |
| 83 // 3. RTT updates, etc., received from the module process thread (CallStats). |
| 84 // |
| 85 // Note: Not everything falls into this division. GetProbingIntervalMs, for |
| 86 // example, is called from multiple threads. |
| 87 rtc::ThreadChecker packetizer_thread_checker_; |
| 88 rtc::ThreadChecker worker_thread_checker_; |
| 89 rtc::ThreadChecker module_process_thread_checker_; |
76 }; | 90 }; |
77 | 91 |
78 } // namespace webrtc | 92 } // namespace webrtc |
79 | 93 |
80 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ | 94 #endif // WEBRTC_MODULES_CONGESTION_CONTROLLER_TRANSPORT_FEEDBACK_ADAPTER_H_ |
OLD | NEW |