Tomas Gunnarsson
4f8a58c3d2
Remove 2 Invokes to the network thread when creating a channel.
...
...and one when destroying a channel object.
This CL removes Init_n() and Deinit_n() from the BaseChannel class.
Channel classes now use SetRtpTransport to do initialization and
uninitialization on the network thread.
Notably if an implementation has called SetRtpTransport() with a valid
transport pointer, it is required that SetRtpTransport be called again
with a nullptr before the channel object can be deleted.
In situations where multiple channels are created, this can mean
a substantial reduction in thread hops. We still hop to the worker
in order to construct the objects - this can probably be avoided
and SetChannel() is still a synchronous operation for the transceivers.
Furthermore, teardown of channel objects also still happens
synchronously and across network/worker/signaling threads.
Bug: webrtc:11992
Change-Id: I68ca7596e181fc82996e3e290733d97381aa5e78
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/246740
Reviewed-by: Harald Alvestrand <hta@webrtc.org >
Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org >
Cr-Commit-Position: refs/heads/main@{#35738}
2022-01-19 12:17:47 +00:00
..
2021-07-22 16:41:26 +00:00
2022-01-04 20:44:07 +00:00
2022-01-19 12:17:47 +00:00
2021-11-29 12:18:29 +00:00
2021-11-29 12:18:29 +00:00
2021-07-30 22:13:59 +00:00
2021-05-24 16:17:35 +00:00
2021-05-24 16:17:35 +00:00
2021-11-29 12:18:29 +00:00
2022-01-05 11:59:14 +00:00
2022-01-19 12:17:47 +00:00
2022-01-19 12:17:47 +00:00
2022-01-19 12:17:47 +00:00
2022-01-19 12:17:47 +00:00
2022-01-19 12:17:47 +00:00
2022-01-19 12:17:47 +00:00
2022-01-04 16:19:33 +00:00
2021-04-21 07:04:01 +00:00
2021-07-30 22:13:59 +00:00
2021-07-30 22:13:59 +00:00
2021-05-21 20:50:48 +00:00
2021-11-04 11:40:28 +00:00
2021-04-19 19:32:23 +00:00
2021-04-19 19:32:23 +00:00
2022-01-03 20:00:52 +00:00
2021-11-15 21:44:59 +00:00
2021-11-04 14:46:27 +00:00
2021-04-27 17:01:59 +00:00
2021-05-21 21:45:29 +00:00
2021-05-21 21:45:29 +00:00
2021-07-30 22:13:59 +00:00
2021-11-15 21:44:59 +00:00
2021-08-10 10:40:03 +00:00
2021-07-30 22:13:59 +00:00
2021-07-30 22:13:59 +00:00
2021-11-27 22:21:54 +00:00
2021-07-30 22:13:59 +00:00
2021-04-27 17:01:59 +00:00
2021-02-10 15:04:55 +00:00
2021-02-10 15:04:55 +00:00
2021-05-17 14:37:55 +00:00
2021-05-17 14:37:55 +00:00
2021-05-17 14:37:55 +00:00
2021-01-05 12:55:24 +00:00
2021-07-22 15:24:56 +00:00
2021-08-10 10:40:03 +00:00
2021-08-11 23:36:28 +00:00
2021-08-11 23:36:28 +00:00
2021-11-15 21:44:59 +00:00
2021-11-15 21:44:59 +00:00
2021-08-11 23:36:28 +00:00
2021-11-15 21:44:59 +00:00
2022-01-05 11:28:25 +00:00
2021-11-04 14:46:27 +00:00
2021-04-27 17:01:59 +00:00
2021-11-02 11:51:31 +00:00
2021-11-02 11:51:31 +00:00
2021-11-15 21:44:59 +00:00
2022-01-13 14:06:55 +00:00
2021-11-04 14:46:27 +00:00
2021-08-03 06:53:59 +00:00
2021-08-03 06:53:59 +00:00
2021-05-28 06:53:29 +00:00
2021-12-22 11:59:26 +00:00
2022-01-18 08:22:15 +00:00
2022-01-18 08:22:15 +00:00
2022-01-04 16:19:33 +00:00
2021-08-31 14:27:49 +00:00
2021-04-27 17:01:59 +00:00
2021-11-15 21:44:59 +00:00
2021-11-18 14:42:35 +00:00
2021-10-26 10:35:41 +00:00
2022-01-04 16:19:33 +00:00
2021-05-28 06:53:29 +00:00
2022-01-10 14:56:03 +00:00
2022-01-04 16:19:33 +00:00
2021-06-01 06:57:31 +00:00
2021-05-12 17:06:58 +00:00
2022-01-10 14:56:03 +00:00
2022-01-10 14:56:03 +00:00
2021-11-18 14:42:35 +00:00
2022-01-10 14:56:03 +00:00
2021-04-19 16:22:23 +00:00
2021-04-15 10:20:00 +00:00
2021-09-28 10:29:54 +00:00
2021-11-15 21:44:59 +00:00
2021-01-29 16:14:10 +00:00
2022-01-04 20:44:07 +00:00
2022-01-10 14:56:03 +00:00
2022-01-04 16:19:33 +00:00
2022-01-04 16:19:33 +00:00
2021-04-30 18:55:47 +00:00
2022-01-04 16:19:33 +00:00
2019-10-14 12:40:53 +00:00
2022-01-10 14:56:03 +00:00
2022-01-04 20:44:07 +00:00
2021-05-28 06:53:29 +00:00
2021-05-28 06:53:29 +00:00
2021-05-28 06:53:29 +00:00
2021-05-17 14:37:55 +00:00
2021-04-08 06:39:22 +00:00
2022-01-11 10:58:35 +00:00
2022-01-11 10:58:35 +00:00
2021-07-30 22:13:59 +00:00
2022-01-10 14:56:03 +00:00
2019-04-09 17:18:20 +00:00
2021-11-15 21:44:59 +00:00
2021-07-30 22:13:59 +00:00
2021-08-11 21:50:08 +00:00
2019-07-08 13:45:15 +00:00
2021-11-15 21:44:59 +00:00
2021-07-30 22:13:59 +00:00
2020-01-09 09:28:07 +00:00
2021-01-29 16:14:10 +00:00
2021-07-30 22:13:59 +00:00
2021-05-28 06:53:29 +00:00
2021-05-27 09:56:42 +00:00
2021-05-17 14:37:55 +00:00
2021-05-28 06:53:29 +00:00
2022-01-19 12:17:47 +00:00
2021-08-10 10:40:03 +00:00
2021-07-30 22:13:59 +00:00
2022-01-19 12:17:47 +00:00
2022-01-19 12:17:47 +00:00
2022-01-19 12:17:47 +00:00
2022-01-04 16:19:33 +00:00
2021-07-30 22:13:59 +00:00
2021-07-30 22:13:59 +00:00
2022-01-03 20:00:52 +00:00
2021-05-05 16:22:33 +00:00
2021-01-29 16:14:10 +00:00
2021-06-29 14:37:32 +00:00
2021-06-29 14:37:32 +00:00
2021-11-04 11:40:28 +00:00
2021-10-18 13:32:22 +00:00
2021-05-21 21:45:29 +00:00
2021-05-21 21:45:29 +00:00
2021-07-30 22:13:59 +00:00
2021-01-11 11:31:33 +00:00
2021-05-10 10:31:48 +00:00
2021-05-10 10:31:48 +00:00
2021-09-16 09:40:52 +00:00
2022-01-19 12:17:47 +00:00
2022-01-17 19:10:34 +00:00
2021-07-30 22:13:59 +00:00
2021-09-08 09:16:09 +00:00
2021-07-30 22:13:59 +00:00
2020-10-26 10:22:46 +00:00
2021-01-29 16:14:10 +00:00
2021-01-29 16:14:10 +00:00
2021-04-16 13:10:54 +00:00
2021-06-15 09:44:36 +00:00
2021-11-04 14:46:27 +00:00
2021-01-29 16:14:10 +00:00
2021-01-29 16:14:10 +00:00
2021-11-04 14:46:27 +00:00
2021-11-04 14:46:27 +00:00
2021-11-04 14:46:27 +00:00
2021-07-30 22:13:59 +00:00
2021-07-19 14:27:27 +00:00
2021-07-26 16:33:54 +00:00
2022-01-03 20:00:52 +00:00
2021-11-04 14:46:27 +00:00
2021-11-04 14:46:27 +00:00
2020-10-05 12:41:23 +00:00
2022-01-11 20:45:16 +00:00
2022-01-11 20:45:16 +00:00
2022-01-11 20:45:16 +00:00
2022-01-04 16:19:33 +00:00
2022-01-04 16:19:33 +00:00
2021-07-30 22:13:59 +00:00
2021-01-29 16:14:10 +00:00
2021-04-20 06:44:40 +00:00
2021-04-20 06:44:40 +00:00
2021-07-26 16:33:54 +00:00
2020-10-09 08:29:45 +00:00
2021-07-30 22:13:59 +00:00
2019-09-24 08:56:24 +00:00
2022-01-18 13:46:37 +00:00
2021-05-17 14:37:55 +00:00
2021-05-24 16:17:35 +00:00
2021-07-30 22:13:59 +00:00
2021-04-27 17:01:59 +00:00
2021-01-29 16:14:10 +00:00
2021-07-30 22:13:59 +00:00
2021-05-27 09:56:42 +00:00
2021-12-21 19:52:56 +00:00
2021-05-24 16:17:35 +00:00
2021-02-10 15:04:55 +00:00
2021-07-30 22:13:59 +00:00
2021-12-22 11:59:26 +00:00
2021-12-22 11:59:26 +00:00
2021-11-30 11:01:14 +00:00
2021-11-30 11:01:14 +00:00
2021-07-30 22:13:59 +00:00
2021-11-15 21:44:59 +00:00
2021-11-04 14:46:27 +00:00