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 cpu usage on linux #7

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

fix cpu usage on linux #7

wants to merge 3 commits into from

Conversation

crop2000
Copy link

slow down loop in subscription thread

@crop2000 crop2000 mentioned this pull request Jul 30, 2024
@crop2000
Copy link
Author

it needs a follow up fix for the case of a re-connection is done within the thread sleep (100ms).

@crop2000
Copy link
Author

i changed the strategy to solve the issue by moving the midi connection close() call into the unsubscribe functions, and dropping the creation of threads.
please tell me if you would prefer a pr with a smaller diff.

@haubie
Copy link
Owner

haubie commented Aug 12, 2024

Thanks @crop2000. I'll need to study your updated solution. Looks interesting (your use of Rust is more advanced than mine!).

I pushed a point release not long ago based on your previous iteration, but looking forward to studying your updated version.

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