8000 Everything is non-blocking, please make sure your main process doesn’t terminate unexpectedly. · Issue #76 · sogou/workflow · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Everything is non-blocking, please make sure your main process doesn’t terminate unexpectedly. #76

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

Closed
Barenboim opened this issue Sep 28, 2020 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@Barenboim
Copy link
Contributor

Wrong:

int main(void)
{
    ...
    task->start();
    return 0;
}

Right:

int main(void)
{
    ...
    task->start();
    pause(); // or better: wait_group.wait();
    return 0;
}
@Barenboim Barenboim changed the title Every thing is non-blocking, please make sure your main process doesn’t terminate unexpectedly. Everything is non-blocking, please make sure your main process doesn’t terminate unexpectedly. Sep 28, 2020
@Barenboim Barenboim added good first issue Good for newcomers documentation Improvements or additions to documentation and removed good first issue Good for newcomers labels Sep 28, 2020
@Barenboim Barenboim pinned this issue Oct 7, 2020
@Barenboim Barenboim unpinned this issue Oct 12, 2020
@Barenboim Barenboim pinned this issue Oct 12, 2020
@Barenboim Barenboim unpinned this issue Nov 13, 2020
@Barenboim Barenboim pinned this issue Nov 23, 2020
@Barenboim Barenboim unpinned this issue Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant
0