crosvm/gpu_display
Pujun Lun 97a6a5fb31 gpu_display: use mpsc channels to avoid busy-waiting (2).
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>
2022-10-04 01:11:37 +00:00
..
examples Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
protocol health-check: Add check for newline at ends of files 2022-08-18 00:17:04 +00:00
src gpu_display: use mpsc channels to avoid busy-waiting (2). 2022-10-04 01:11:37 +00:00
build.rs Update all copyright headers to match new style 2022-09-13 18:41:29 +00:00
Cargo.toml gpu_display: upstream Windows implementation 2022-09-16 17:36:57 +00:00