Skip to content

Why tasks_count_ decrease 1 out of side the Execute for loop? #38

@XimingCheng

Description

@XimingCheng

if (tasks_count_.fetch_sub(1) == 1) {

Above code each loop in Execute function will done a task, but tasks_count_ decrease 1 is out of side the Execute for loop, I do not know why. Could you tell me the reason, thanks!

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