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

Bug in Executor::get_next_ready_executable ? #2474

Closed
jmachowinski opened this issue Apr 2, 2024 · 3 comments
Closed

Bug in Executor::get_next_ready_executable ? #2474

jmachowinski opened this issue Apr 2, 2024 · 3 comments

Comments

@jmachowinski
Copy link
Contributor

Hey

if (callback_group && !callback_group->can_be_taken_from()) {

I am highly confused by this code block:

        auto callback_group = entity_iter->second.callback_group.lock();
        if (callback_group && !callback_group->can_be_taken_from()) {
          continue;
        }

Shouldn't it be ?

        auto callback_group = entity_iter->second.callback_group.lock();
        if (!callback_group || !callback_group->can_be_taken_from()) {
          continue;
        }
@jmachowinski
Copy link
Contributor Author

@wjwwood @mjcarroll this was changed in #2142

@mjcarroll
Copy link
Member

You are correct, and the ones that follow are also incorrect, I will patch.

Good catch!

@jmachowinski
Copy link
Contributor Author

fixed

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.

2 participants