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

Fix #752 (deadlock by Fox SGF) #757

Merged
merged 2 commits into from
Sep 29, 2020
Merged

Conversation

kaorahi
Copy link
Contributor

@kaorahi kaorahi commented Sep 25, 2020

ref. #752 (comment)

Summary:
Fox SGF has many nodes (AI's principal variation for every move). When Lizzie reads it, more than 5000 GTP commands are sent to the engine successively. Then the pipe is stalled and Lizzie falls into a deadlock. For avoiding the deadlock, this PR introduces a writer thread so that the UI thread is not blocked even when the pipe is stalled.

Thanks to lightvector for his helpful review.

@hope366 hope366 mentioned this pull request Sep 25, 2020
@featurecat featurecat merged commit 79f0052 into featurecat:master Sep 29, 2020
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