Skip to content
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

Regression : Executor::spin_some_impl is active waiting #2508

Closed
jmachowinski opened this issue Apr 17, 2024 · 5 comments
Closed

Regression : Executor::spin_some_impl is active waiting #2508

jmachowinski opened this issue Apr 17, 2024 · 5 comments
Assignees

Comments

@jmachowinski
Copy link
Contributor

This was introduced in #2142

if (!wait_result_.has_value() && !exhaustive) {

This condition make the executor active spin until the time is over if used in spin_all.

I guess

    if (!wait_result_.has_value() || !exhaustive) {
      // In the case of spin some, then we can exit
      // In the case of spin all, then we will allow ourselves to wait again.
      break;
    }

is the correct implementation.

@MichaelOrlov
Copy link
Contributor

@wjwwood Could you please handle this issue?
We decided to assign this issue to you at the latest waffle meeting. However, I don't have permission to change the Assignee field.

@wjwwood
Copy link
Member

wjwwood commented May 1, 2024

Small update, I've iterated on the original pr to fix this here: #2517

Waiting to get it reviewed before merging it.

@fujitatomoya
Copy link
Collaborator

@wjwwood i will try to taka a look in this week. thanks!

@wjwwood
Copy link
Member

wjwwood commented May 2, 2024

Thanks @fujitatomoya, as always more reviews (even post merge reviews) are welcome, but @mjcarroll reviewed it already too.

@wjwwood
Copy link
Member

wjwwood commented May 2, 2024

Closed with #2517

@wjwwood wjwwood closed this as completed May 2, 2024
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 a pull request may close this issue.

4 participants