-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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 by Bors] - Miri can set thread names now #5108
Conversation
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.
Thanks!
crates/bevy_tasks/src/task_pool.rs
Outdated
@@ -102,9 +102,6 @@ impl TaskPool { | |||
let ex = Arc::clone(&executor); | |||
let shutdown_rx = shutdown_rx.clone(); | |||
|
|||
// miri does not support setting thread names | |||
// TODO: change back when https://github.com/rust-lang/miri/issues/1717 is fixed | |||
#[cfg(not(miri))] | |||
let mut thread_builder = { |
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.
I don't think we'd have used a block expression here if it weren't for the cfg
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.
I made the same/similar changes in #4740., but that one might require more scrutiny before merging.
bors r+ |
# Objective rust-lang/miri#1717 has been fixed so we can set thread names in Miri now. ## Solution We set thread names in Miri.
# Objective rust-lang/miri#1717 has been fixed so we can set thread names in Miri now. ## Solution We set thread names in Miri.
# Objective rust-lang/miri#1717 has been fixed so we can set thread names in Miri now. ## Solution We set thread names in Miri.
# Objective rust-lang/miri#1717 has been fixed so we can set thread names in Miri now. ## Solution We set thread names in Miri.
Objective
rust-lang/miri#1717 has been fixed so we can set thread names in Miri now.
Solution
We set thread names in Miri.