| commit | 58922763ae4a7104f72aa5d80cd8100b36b6595e | [log] [tgz] | 
|---|---|---|
| author | Tommi <tommi@webrtc.org> | Mon Oct 13 11:16:11 2025 | 
| committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Oct 13 16:12:48 2025 | 
| tree | 7c96e510db0a8c1d99f35f91a04099342691d1ec | |
| parent | 4aa000bb119e33f85967871b72eca6a05e917268 [diff] | 
Add thread safety checks to the voice engine classes The non-const methods and member variables of `WebRtcVoiceEngine` and its send and receive channel subclasses are intended to be accessed only from the worker thread. This commit enforces this contract to prevent potential race conditions and improve thread safety. Member variables are now protected with `RTC_GUARDED_BY` annotations to enable compile-time checking of access patterns. Additionally, public methods have been updated with `RTC_DCHECK_RUN_ON` assertions to verify they are called on the correct thread in debug builds. Bug: none Change-Id: I23fd924015d91c14e18315e92d7ef84525a55673 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/416420 Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#45924}
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.