Skip to content

Improve Input Handling - #4

Open
feldspath wants to merge 1 commit into
mainfrom
fix/improved_input_handling
Open

Improve Input Handling#4
feldspath wants to merge 1 commit into
mainfrom
fix/improved_input_handling

Conversation

@feldspath

Copy link
Copy Markdown
Member

The current input logic in (std) mseq is flawed.

We now wait for any element in the queue, drain it, and release the lock immediately, before locking the conductor, controller, and context. This prevents any possible deadlock (we never have 2 locks at the same time), and decreases the time spent with the queue locked.

We also add a wait_while for the queue lock because it can trigger spuriously.

@feldspath
feldspath requested a review from jeudine July 15, 2026 16:33
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.

1 participant