crosvm/cros_async
Dylan Reid 26384d840c cros_async: Fix double cancellation of fd wakers
When converting from VecDeque to Slab, the remove function return
changed from returning None when missing a token a panic.
Instead, of relying on that explicitly store an option to the waker so
there can be no mistake, log an error if there is ever an unexpected
token or if a waker fires twice.

Change-Id: Icfbb3124ca4ad3cd721a3722a299f28358e8547b
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2545127
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Dylan Reid <dgreid@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
2020-11-24 12:21:52 +00:00
..
src cros_async: Fix double cancellation of fd wakers 2020-11-24 12:21:52 +00:00
.build_test_skip
Cargo.toml