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 double close of run loop on MacOS #522

Merged
merged 1 commit into from
Apr 9, 2023

Conversation

rafdus
Copy link
Contributor

@rafdus rafdus commented Apr 5, 2023

No description provided.

Copy link
Member

@Youw Youw left a comment

Choose a reason for hiding this comment

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

thanks!

@Youw Youw merged commit c1b9d2a into libusb:master Apr 9, 2023
7 checks passed
@mcuee mcuee added the macOS Related to macOS backend label Apr 15, 2023
sezero added a commit to sezero/SDL that referenced this pull request Apr 24, 2023
libusb/hidapi@c1b9d2a
Properly handle the close of run loop on macOS
(libusb/hidapi#522)
- as per documentation `kCFRunLoopRunStopped` should be handled once the runloop is closed via `CFRunLoopStop`;
- if it is not handled - a race condition/crash may happen on the latest macOS when a device gets disconnected while being open;
slouken pushed a commit to libsdl-org/SDL that referenced this pull request Apr 24, 2023
libusb/hidapi@c1b9d2a
Properly handle the close of run loop on macOS
(libusb/hidapi#522)
- as per documentation `kCFRunLoopRunStopped` should be handled once the runloop is closed via `CFRunLoopStop`;
- if it is not handled - a race condition/crash may happen on the latest macOS when a device gets disconnected while being open;
slouken pushed a commit to libsdl-org/SDL that referenced this pull request Apr 24, 2023
libusb/hidapi@c1b9d2a
Properly handle the close of run loop on macOS
(libusb/hidapi#522)
- as per documentation `kCFRunLoopRunStopped` should be handled once the runloop is closed via `CFRunLoopStop`;
- if it is not handled - a race condition/crash may happen on the latest macOS when a device gets disconnected while being open;

(cherry picked from commit 62d1a2c)
sezero added a commit to sezero/SDL that referenced this pull request May 17, 2023
libusb/hidapi@c1b9d2a
Properly handle the close of run loop on macOS
(libusb/hidapi#522)
- as per documentation `kCFRunLoopRunStopped` should be handled once the runloop is closed via `CFRunLoopStop`;
- if it is not handled - a race condition/crash may happen on the latest macOS when a device gets disconnected while being open;

(cherry picked from commit 62d1a2c)
lexi-the-cute pushed a commit to lexi-the-cute/SDL that referenced this pull request May 22, 2023
libusb/hidapi@c1b9d2a
Properly handle the close of run loop on macOS
(libusb/hidapi#522)
- as per documentation `kCFRunLoopRunStopped` should be handled once the runloop is closed via `CFRunLoopStop`;
- if it is not handled - a race condition/crash may happen on the latest macOS when a device gets disconnected while being open;

(cherry picked from commit 62d1a2c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
macOS Related to macOS backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants