mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
cros_async: implement waker_wake
Some futures-rs combinators call wake directly instead of using wake_by_ref. This was left out as on oversight because the initial executor code only used wake_by_ref. TEST=run tests with the combinators from futures-rs Change-Id: I8ac06dfd47d34eee493a5b1194d00ef9d7f6bc18 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2173972 Tested-by: Dylan Reid <dgreid@chromium.org> Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Dylan Reid <dgreid@chromium.org> Reviewed-by: Stephen Barber <smbarber@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
This commit is contained in:
parent
f60fb14a72
commit
4381d04dd9
1 changed files with 3 additions and 1 deletions
|
@ -16,7 +16,9 @@ unsafe fn waker_drop(data_ptr: *const ()) {
|
|||
let _rc_bool = Rc::<AtomicBool>::from_raw(data_ptr as *const _);
|
||||
}
|
||||
|
||||
unsafe fn waker_wake(_: *const ()) {}
|
||||
unsafe fn waker_wake(data_ptr: *const ()) {
|
||||
waker_wake_by_ref(data_ptr)
|
||||
}
|
||||
|
||||
// Called when the bool should be set to true to wake the waker.
|
||||
unsafe fn waker_wake_by_ref(data_ptr: *const ()) {
|
||||
|
|
Loading…
Reference in a new issue