commit | b3dd1738e4ab384e0e68b7eede43e6d289fdb417 | [log] [tgz] |
---|---|---|
author | Henrik Boström <hbos@webrtc.org> | Fri Sep 30 15:22:44 2022 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Sep 30 18:21:20 2022 |
tree | deb161740d876b3a1c410f79d45735b8a245e323 | |
parent | b8f31dc5c6e24b4c05a68f991fa4b7dbd9a4cc90 [diff] |
Fix race in RTCStatsCollector's cache. `cached_certificates_by_transport_` is used on the network thread, but can be cleared from the signaling thread. To fix the race where clear happens at the same time as stats collecting, a mutex is added. This mutex should very rarely be contended in practise since ClearCachedStatsReport() typically only happen during renegotiation (e.g. when someone joins/leaves) and getStats only happens once per second or less (typically). NOTRY=Everything passes except unrelated purple bot Bug: webrtc:14510 Change-Id: Iaf539a5cc8c87184fa0a87b9c889a13b941a9ad1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/277620 Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org> Commit-Queue: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#38262}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See here for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.