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

Synchronize flush_all(). #2191

Merged
merged 2 commits into from
Jan 30, 2025
Merged

Conversation

vdbergh
Copy link
Contributor

@vdbergh vdbergh commented Jan 30, 2025

The former comment about deadlock seems outdated to me. Signal handlers run in the main thread and Fishtest executes no code in the main thread once initialization is finished. So signal handlers behave like asynchronous events in the same way as api calls do, and the latter appear currently to be deadlock free.

In a second commit we make a small tweak in the procedure to stop the scheduler.

The former comment about deadlock seems outdated to me. Signal
handlers run in the main thread and Fishtest executes no code
in the main thread once initialization is finished. So
signal handlers behave like asynchronous events in the same way
as api calls do, and the latter appear currently to be deadlock free.
@ppigazzini ppigazzini added enhancement server server side changes dev test currently undergoing test on DEV and removed dev test currently undergoing test on DEV labels Jan 30, 2025
Copy link
Collaborator

@ppigazzini ppigazzini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on DEV, I will update PROD after the merge, thank you @vdbergh :)

@ppigazzini ppigazzini merged commit a7255b0 into official-stockfish:master Jan 30, 2025
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement server server side changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants