8000 Would you tell me why you use notify_one instead of notify_all here? · Issue #26 · mtrebi/thread-pool · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Would you tell me why you use notify_one instead of notify_all here? #26
Open
@CoinCheung

Description

@CoinCheung

m_conditional_lock.notify_one();

I am reading the code and try to learn from it, and I am puzzled that you use notify_one in this line rather than notify_all, would you please tell me why notify_one is better here ?

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

      0