commit | 6791c9d17e2f6f381d2b7919696e2b8d42a88605 | [log] [tgz] |
---|---|---|
author | Victor Boivie <boivie@webrtc.org> | Mon Jan 08 12:30:51 2024 |
committer | WebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Jan 09 11:50:44 2024 |
tree | 93c962e7314f49a3ea4b74e74f149295941411d8 | |
parent | 9702f6c9fbf3888adfb036bc39b7b6682195316c [diff] |
dcsctp: Relax thread sequence checker The DcSctpSocket is thread compatible. As long as you serialize accesses to it - either by calling it from the same thread, or using some kind of concurrency primitive (e.g. mutex) to avoid calling the API methods from different threads concurrently, it's fine. Using the sequence checker, we can verify that the socket is called from the thread it was created on, or from the same task queue. This provided a more strict verification, as it didn't allow e.g. creating a socket on one thread, and then handing it to a different thread where it was used. Nor did it allow having multiple threads use it, protecting any calls to it using an external mutex. One can avoid these checks using webrtc::CurrentTaskQueueSetter to allow the sequence checker to believe it's running where it's not running, but this is a hack. This CL removes the sequence checker in the socket, to simplify using it in environments that don't use task queues for synchronization. Since it is still kept in dcsctp::TaskQueueTimeoutFactory, it's still used in all environments where the task queue is used (e.g. Chrome). This makes it easier to use dcSCTP without WebRTC. Bug: None Change-Id: I2674d7cd902bad45ed3d0816c908ecf3ee971727 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/333801 Reviewed-by: Florent Castelli <orphis@webrtc.org> Commit-Queue: Victor Boivie <boivie@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41482}
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.