mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
We were busy-waiting on atomic variables for the message loop state of the WndProc thread. That is to make sure other threads don't start posting messages to the WndProc thread until the latter has created the message queue and is about to enter the message loop. We can use mpsc channels instead. The WndProc thread notifies other threads that it is ready by sending out its thread ID. BUG=b:243184256 TEST=tested in downstream Change-Id: Ia2a675c083bb6aa9046dd9eab932a95fa06b8709 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3928133 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Pujun Lun <lunpujun@google.com> |
||
---|---|---|
.. | ||
examples | ||
protocol | ||
src | ||
build.rs | ||
Cargo.toml |