-
Notifications
You must be signed in to change notification settings - Fork 341
Implement simple work stealing #205
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
Conversation
pub(crate) struct Pool { | ||
pub injector: Injector<task::Runnable>, | ||
pub stealers: Vec<Stealer<task::Runnable>>, | ||
pub sleepers: Sleepers, |
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.
These fields should probably be marked pub(crate)
.
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.
We can always do this later.
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.
Few nits, but this is looking 💯!
Co-Authored-By: Yoshua Wuyts <[email protected]>
bors r+ |
205: Implement simple work stealing r=yoshuawuyts a=stjepang This is our first version of a work-stealing scheduler. We won't stop here, there is still lots of room for improvement. Co-authored-by: Stjepan Glavina <[email protected]>
Build succeeded
|
This is our first version of a work-stealing scheduler. We won't stop here, there is still lots of room for improvement.