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: (no)gil/except declarations on MIDI in callback and sendMessage #185

Merged
merged 1 commit into from
Oct 23, 2023

Conversation

SpotlightKid
Copy link
Owner

GIL is acquired in any case for MIDI in callback and sendMessage, since Cython needs to check C++ call for exceptions

Also remove wrong statement about the GIL being released in docstring for sendMessage

Lastly, suppress related Cython performance hints

GIL is acquired in any case for MIDI in callback and `sendMessage`, since Cython needs to check C++ call for exceptions

Also remove wrong statement about the GIL being released in docstring for `sendMessage`

Lastly, suppress related Cython performance hints

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
@SpotlightKid SpotlightKid merged commit c0b9381 into master Oct 23, 2023
5 checks passed
@SpotlightKid SpotlightKid deleted the fix/callbacks-gil branch October 23, 2023 07:23
bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this pull request Nov 7, 2023
https://build.opensuse.org/request/show/1123698
by user mia + anag+factory
- Omit html docs due to hostile build system
- Update to 1.5.7
Fixes:
  * Fixed linting errors in `send_all.py` example.
    gh#SpotlightKid/python-rtmidi#184
  * Fixed (no)gil/except declarations on MIDI in callback and
    `MidiOut.sendMessage`.
    The GIL is acquired in any case for MIDI in callback and C++
    `sendMessage` call, since Cython needs to check for exceptions.
    Also remove wrong statement about the GIL being released in
    docstring for `send_message`.
    gh#SpotlightKid/python-rtmidi#185
  * Fixed errors and check for empty message correctly when passing
    an iter- or generator instead of a sequence to
    `MidiOut.send_message`.
    gh#SpotlightKid/python-rtmidi#186
    gh#SpotlightKid/python-rtmidi#188
- 1.5.6
Fixes:
  * Fixed building with `meson-python` >= 0.14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant