crosvm/sync
Benjamin Gordon 01743e49eb sync: Add wait_while variants to condvar wrapper
wait_while and wait_timeout_while are similar to wait and wait_timeout,
but they implicitly wrap the wait in a while loop to handle spurious
wakeups.

BUG=b:192243046
TEST=cargo test

Change-Id: I2b4c2b6784df9128872772880e7045a09d1d8c22
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2992161
Reviewed-by: Chih-Yang Hsia <paulhsia@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Benjamin Gordon <bmgordon@chromium.org>
2021-06-30 02:38:43 +00:00
..
src sync: Add wait_while variants to condvar wrapper 2021-06-30 02:38:43 +00:00
Cargo.toml edition: Update sync crate to 2018 edition 2019-03-17 14:38:44 -07:00