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

Add patch to fix race condition especially during commissioning #70

Merged
merged 1 commit into from
May 29, 2024

Conversation

agners
Copy link
Collaborator

@agners agners commented May 29, 2024

This adds a patch which removes some obsolte callback handling. This especially fixes race condition when calling the Python Device Controller from multiple Threads. Commands with callbacks (e.g. commissioning or opening the commissioning window) have a high likelyhood to get released early when other functions of the Python Device Controller were called simultaniously.

Note that this doesn't make the Python Device Controller fully reentrant: All calls which have callbacks still share a single event object. This fixes merly some unnecessary non-reentrancy.

This adds a patch which removes some obsolte callback handling. This
especially fixes race condition when calling the Python Device Controller
from multiple Threads. Commands with callbacks (e.g. commissioning or
opening the commissioning window) have a high likelyhood to get released
early when other functions of the Python Device Controller were called
simultaniously.

Note that this doesn't make the Python Device Controller fully
reentrant: All calls which have callbacks still share a single event
object. This fixes merly some unnecessary non-reentrancy.
@agners agners force-pushed the fix-race-with-commissioning branch from 64103a7 to 417fac2 Compare May 29, 2024 17:31
@agners agners merged commit 72ad04c into release May 29, 2024
3 of 4 checks passed
@agners agners deleted the fix-race-with-commissioning branch May 29, 2024 18:31
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.

2 participants