-
Notifications
You must be signed in to change notification settings - Fork 12
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
book: add sections about threading #152
Conversation
Friendly ping @kaspar030, mind giving a review here? :) |
book/src/SUMMARY.md
Outdated
|
||
### Example | ||
|
||
```rs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As asked elsewhere: this would be useful as an example. maybe just copy examples/threading
to examples/threading_channel
, put his code there, then use here via mdbook include (with anchor)?
(We can postpone that to a follow up)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implemented in #223.
book/src/SUMMARY.md
Outdated
@@ -5,7 +5,112 @@ | |||
|
|||
# User Guide | |||
|
|||
## Multi-threading | |||
|
|||
Riot-rs implements a scheduler based on fixed priorities and preemption. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a line here describing the scheduling policy (highest runnable thread always running).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 402434e.
Address review.
Move chapters to separate files.
It looks to me that most of this could become rustdoc of the |
I agree. Most of these docs are extracted from the rustdocs anyway, but they could be moved into library/ module level docs in |
Closing this PR. |
Extracted from #133.
Add sections about multi-threading /
riot-rs-threads
to user and developer guide in the book.Couple of open questions (marked as TODOs) within the text.
Happy to add additional sections/ details if you think anything is missing, or to remove stuff that might be too deep or still subject to change.