Skip to content

runtime (chan): support blocking without a scheduler #2444

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

niaow
Copy link
Member

@niaow niaow commented Dec 29, 2021

This change modifies the implementation of channels such that they can still block without a scheduler.
An example that works with this change is examples/systick which sends to a channel from an interrupt.

@niaow
Copy link
Member Author

niaow commented Dec 29, 2021

It currently uses a fake task for compatibility, which is kinda messy. I am not entirely sure of a good way to do this which doesn't involve either making the existing implementation much more complex or maintaining an entire additional implementation of channels.

@niaow
Copy link
Member Author

niaow commented Dec 30, 2021

Hmm. Actually, I might have a better idea once coroutines are removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant