Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Stoppable search thread #195

Merged
merged 2 commits into from
Apr 28, 2023
Merged

Stoppable search thread #195

merged 2 commits into from
Apr 28, 2023

Conversation

QueensGambit
Copy link
Owner

Allows a safe stopping of the search thread.

Locking a mutex from the main thread and releasing it in a different thread causes problems in Windows ("Unlock of unowned mutex"). Therefore, we need to use a condition variable and a mutex here.

Reference: dmfrodrigues/GraphViewerCpp#16

Related:

Locking a mutex from the main thread and releasing it in a different
thread causes problems in Windows: Unlock of unowned mutex
Therefore, we need to use a condition variable and a mutex here:
Reference: dmfrodrigues/GraphViewerCpp#16
@QueensGambit QueensGambit merged commit c52f9ad into master Apr 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant