Markus Handell 06540166ca Port: migrate to TaskQueue.
Port uses legacy rtc::Thread message handling. In order
to cancel callbacks it uses rtc::Thread::Clear() which uses locks and
necessitates looping through all currently queued (unbounded) messages
in the thread. In particular, these Clear calls are common during
negotiation and the probability of having a lot of queued messages is
high due to a long-running network thread function invoked on the
network thread.

Fix this by migrating Port to task queues.


Bug: webrtc:12840, webrtc:9702
Change-Id: I6c6fb83323899b56091f0857a1c2d15d19199002
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/221370
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Markus Handell <handellm@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34338}
2021-06-21 06:48:09 +00:00
..
2019-11-18 16:11:27 +00:00
2021-06-21 06:48:09 +00:00
2021-06-21 06:48:09 +00:00
2019-07-08 13:45:15 +00:00
2019-11-18 16:11:27 +00:00
2019-07-08 13:45:15 +00:00
2021-06-21 06:48:09 +00:00
2021-06-21 06:48:09 +00:00