Dario Nieuwenhuis
171cdb94c7
executor: add support for main/task macros in stable (allocates tasks in an arena)
2023-11-24 23:52:09 +01:00
Dario Nieuwenhuis
bef9b7a853
executor: remove atomic-polyfill.
2023-11-15 18:43:27 +01:00
Dario Nieuwenhuis
50a983fd9b
executor: add missing main
macro reexport on xtensa.
2023-11-14 18:45:23 +01:00
Dániel Buga
8d8d50cc7a
Yeet core::sync::atomic, remove futures-util dep
2023-11-06 17:35:02 +01:00
Hailey Somerville
b9d4b18f14
update UninitCell::write call in arch::wasm too
2023-09-14 13:59:24 +10:00
Dániel Buga
54e2e17520
Avoid dead code warning
2023-08-26 12:53:39 +02:00
Dániel Buga
e4f3979ec8
Don't check context if only thread-mode is enabled
2023-08-14 16:46:02 +02:00
Dániel Buga
da4f15d944
Fix fn name
2023-08-14 16:34:10 +02:00
Dániel Buga
9954346143
Remove interrupt executor, remove PenderContext
2023-08-14 16:04:11 +02:00
Dániel Buga
986a63ebb8
Remove the non-specific thread-mode executor
2023-08-14 15:41:53 +02:00
Dániel Buga
4c4b12c307
Make PenderContext opaque
2023-08-14 15:16:40 +02:00
Dániel Buga
f6007869bf
Remove the Pender enum
2023-08-14 09:00:08 +02:00
Dániel Buga
ec6bd27df6
Remove thread-context feature
2023-08-14 08:22:22 +02:00
Dániel Buga
6ab0d71d92
Tweak identifiers and comments
2023-08-12 22:42:50 +02:00
Dániel Buga
d5e66f6f87
Lift thread-context feature restrictions
2023-08-12 22:20:11 +02:00
Dániel Buga
bce250bbdc
Remove unnecessary !Send markers
2023-08-12 22:17:03 +02:00
Dániel Buga
fbf50cdae8
Remove Pender wrapper
2023-08-12 22:13:08 +02:00
Dániel Buga
675b7fb605
POC: allow custom executors
2023-08-12 18:29:56 +02:00
Kaspar Schleiser
54fc933932
embassy-executor: introduce InterruptExecutor::spawner()
2023-06-16 12:59:23 +02:00
Dániel Buga
5fe36b6bb0
Work around xtensa deadlock, take 2
2023-05-13 15:04:02 +02:00
Roy Buitenhuis
32836129f6
re-export main_riscv macro as main for riscv arch.
2023-04-11 14:59:38 +02:00
Dario Nieuwenhuis
d3c4e4a20a
executor: add Pender, rework Cargo features.
...
This introduces a `Pender` struct with enum cases for thread-mode, interrupt-mode and
custom callback executors. This avoids calls through function pointers when using only
the thread or interrupt executors. Faster, and friendlier to `cargo-call-stack`.
`embassy-executor` now has `arch-xxx` Cargo features to select the arch and to enable
the builtin executors (thread and interrupt).
2023-04-03 03:09:11 +02:00
Dario Nieuwenhuis
10c9cc31b1
Remove unnecessary use of atomic-polyfill.
...
Only use it when CAS is actually needed.
2022-12-23 20:46:49 +01:00
Ulf Lilleengen
50c5cc5db6
fix: revert race condition introduced for riscv
2022-11-23 13:17:05 +01:00
Sijmen Woutersen
e70ae71ecc
restore SIGNAL_WORK_THREAD_MODE
2022-11-12 10:58:37 +01:00
Sijmen Woutersen
6e1120e17e
riscv support
2022-11-10 17:39:41 +01:00
Dario Nieuwenhuis
478f472784
Remove Forever, switch to static_cell.
2022-08-22 16:11:40 +02:00
Dario Nieuwenhuis
5daa173ce4
Split embassy-time from embassy-executor.
2022-08-18 01:22:30 +02:00