This commit is contained in:
Dániel Buga 2024-12-08 10:40:01 +01:00
parent 0a12fc4d26
commit 8b6b1b9559
No known key found for this signature in database

View File

@ -73,6 +73,8 @@ impl embassy_time_queue_driver::TimerQueue for crate::time_driver::TimerQueueDri
#[cfg(not(single_queue))]
unsafe {
// FIXME: this is UB, use Exposed Provenance API (or something better) when
// available. Expose provenance in `InnerExecutor::init`, and use it here.
let executor = &*(waker.executor().unwrap_unchecked()
as *const embassy_executor::raw::Executor)
.cast::<crate::executor::InnerExecutor>();