Danil Chapovalov babdaa8623 Unbind VirtualSocket from rtc::MessageHandler
Instead protect pending tasks with a shared object.
Some tests destroy VirtualSocket on a different thread than it is used on,
Some tests destroy VirtualSocket together with VirtualSocketServer after
associated thread is deleted, thus complicated check is used to ensure
VirtualSockets are safe to use.

Bug: webrtc:9702
Change-Id: I1a19cd24ac6a598a1cde64434104cad0b750096e
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/274460
Reviewed-by: Tomas Gunnarsson <tommi@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#38103}
2022-09-16 14:13:41 +00:00
..
2019-07-08 13:45:15 +00:00
2021-09-21 16:28:38 +00:00
2021-09-21 16:28:38 +00:00
2022-08-19 07:11:06 +00:00
2019-07-08 13:45:15 +00:00
2022-06-07 07:14:06 +00:00
2019-07-08 13:45:15 +00:00
2019-07-08 13:45:15 +00:00
2022-01-28 15:13:45 +00:00
2021-08-31 14:27:49 +00:00
2019-02-16 11:11:45 +00:00
2019-07-08 13:45:15 +00:00
2019-11-26 14:05:20 +00:00
2019-07-08 13:45:15 +00:00
2021-09-21 15:17:26 +00:00
2022-01-25 15:39:53 +00:00
2021-02-10 15:04:55 +00:00
2019-07-08 13:45:15 +00:00
2021-10-13 19:26:10 +00:00
2019-07-08 13:45:15 +00:00