Skip to content

Choose task thread in rust_scheduler by round robin#2086

Merged
brson merged 2 commits intorust-lang:masterfrom
jamorton:round_robin_scheduler
Apr 1, 2012
Merged

Choose task thread in rust_scheduler by round robin#2086
brson merged 2 commits intorust-lang:masterfrom
jamorton:round_robin_scheduler

Conversation

@jamorton
Copy link
Copy Markdown
Contributor

Remove the random context from rust_scheduler and use a simple round robin system to choose which thread a new task gets put on. Also, some incorrect tab indents around scoped blocks were fixed.

Remove the random context from rust_scheduler and use a simple round robin system to choose which thread a new task gets put on. Also, some incorrect tab indents around scoped blocks were fixed.
@brson
Copy link
Copy Markdown
Contributor

brson commented Mar 31, 2012

This looks good. The only change I'd like is for cur_thread to be initialized to 0 in rust_scheduler's initialization list.

Also, I note that this will launch the first task on thread 1 instead of 0. Would make me happier if it started on 0, but not for any rational reason.

Thanks for fixing the indents. That was my mistake.

@brson brson merged commit 9851a90 into rust-lang:master Apr 1, 2012
@brson
Copy link
Copy Markdown
Contributor

brson commented Apr 1, 2012

Merged. Thanks!

folkertdev added a commit to folkertdev/rust that referenced this pull request May 6, 2026
…eon-tests

Add more manual aarch64 load/store intrinsic tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants