Skip to content

Question about run_while #116

@lklein53

Description

@lklein53

Hello,

I was looking at the implementation of run_while and was wondering why its okay to not check the loop condition again after executing process_local_queue in the do_one function. Can't it happen that processing of the local queue would make the loop condition return false?
Couldn't this lead to a case where is_more_completed_work_pending is false, the loop condition would return false (but we are not checking it) and then end up with an infinite deadline in the do_one_completion_queue_event function?

Sorry if i am missing something obvious here.

thanks and best regards,
Lars

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions