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

examples/cpp-multithreaded: fixed locks and timeThread terminate conditions #434

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marioc64
Copy link

C++ unique_lock created through constructor with an argument creates already locked lock. The lock is unlocked with destructor.

condition_variable::wait_for returns true when await at least specified timeout false otherwise. There is no guarantee that it returns false when notified, therefore thread exit is done through extra flag 'running'.

…itions

C++ unique_lock created through constructor with an argument creates already locked lock. The lock is unlocked with destructor.

condition_variable::wait_for returns true when await at least specified timeout false otherwise. There is no guarantee that it returns false when notified, therefore thread exit is done through extra flag 'running'.
@andlabs andlabs added this to the Alpha 5 milestone Dec 31, 2018
@marioc64
Copy link
Author

marioc64 commented Jun 5, 2019

There is something wrong with one test build:

Pipeline configuration error:
/azure-pipelines.yml: Could not find /azure-pipelines/artifacts.yml in repository self hosted on https://api.github.com using commit 05c688b. GitHub reported the error, "Not Found"

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 this pull request may close these issues.

3 participants