Skip to content

Regression : Executor::spin_some_impl is active waiting #2508

Description

@jmachowinski

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions