Skip to content

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

Merged
merged 2 commits into from Sep 17, 2019
Merged

Implement simple work stealing #205

merged 2 commits into from Sep 17, 2019

Conversation

ghost
Copy link

@ghost ghost commented Sep 17, 2019

This is our first version of a work-stealing scheduler. We won't stop here, there is still lots of room for improvement.

@yoshuawuyts yoshuawuyts mentioned this pull request Sep 17, 2019
6 tasks
pub(crate) struct Pool {
pub injector: Injector<task::Runnable>,
pub stealers: Vec<Stealer<task::Runnable>>,
pub sleepers: Sleepers,
Copy link
Contributor

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).

Copy link
Contributor

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.

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a 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]>
@yoshuawuyts
Copy link
Contributor

bors r+

bors bot added a commit that referenced this pull request Sep 17, 2019
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]>
@yoshuawuyts yoshuawuyts added the enhancement New feature or request label Sep 17, 2019
@bors
Copy link
Contributor

bors bot commented Sep 17, 2019

Build succeeded

  • continuous-integration/travis-ci/push

@bors bors bot merged commit 04dbcbb into async-rs:master Sep 17, 2019
@chpio
Copy link

chpio commented Oct 16, 2019

@ghost ghost deleted the work-stealing branch October 16, 2019 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants