Skip to content

Commit 6d578ce

Browse files
committed
zephyr: Remove work-queue executor
The work-queue-based executor was an attempt to implement a Rust executor that worked with Zephyr work queues. Although it was possible to make something that kind of worked, and did have the advantage of being able to use a few Zephyr primitives, it suffers from several problems: - It isn't very efficient, basically combining the overhead of async scheduling, triggered work, and the Zephyr thread scheduler. - It plays poorly with any other use of async. Since it is useful to be able to use external crates for async utilities, this normally just results in undefined-behavior. Now that we have another executor (built from Embassy), this code is also mostly unneeded. Signed-off-by: David Brown <[email protected]>
1 parent 7e4d2bf commit 6d578ce

File tree

7 files changed

+2
-1295
lines changed

7 files changed

+2
-1295
lines changed

zephyr/src/kio.rs

Lines changed: 0 additions & 183 deletions
This file was deleted.

zephyr/src/kio/sync.rs

Lines changed: 0 additions & 125 deletions
This file was deleted.

zephyr/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ pub mod align;
8080
pub mod device;
8181
pub mod embassy;
8282
pub mod error;
83-
#[cfg(CONFIG_RUST_ALLOC)]
84-
pub mod kio;
8583
pub mod logging;
8684
pub mod object;
8785
#[cfg(CONFIG_RUST_ALLOC)]

0 commit comments

Comments
 (0)