Skip to content

Fix double close of run loop on MacOS#522

Merged
Youw merged 1 commit intolibusb:masterfrom
rafdus:bugfix/double-run-loop-close
Apr 9, 2023
Merged

Fix double close of run loop on MacOS#522
Youw merged 1 commit intolibusb:masterfrom
rafdus:bugfix/double-run-loop-close

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
@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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

macOS Related to macOS backend

3 participants