Skip to content

Commit 76ed3bf

Browse files
aolowind3zd3z
authored andcommitted
zephyr:embassy: Use a semaphore for the executor
Fixes a potential race condition in the suspend/resume sequence.
1 parent 75570fd commit 76ed3bf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zephyr/src/embassy/executor.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ use core::marker::PhantomData;
55
use crate::sys::sync::Semaphore;
66
use crate::time::Forever;
77
use embassy_executor::{raw, Spawner};
8+
use crate::sys::sync::Semaphore;
9+
use crate::time::Forever;
810

911
/// Zephyr-thread based executor.
1012
pub struct Executor {

0 commit comments

Comments
 (0)