Skip to content

Commit 6cf6402

Browse files
committed
Log of CFRunLoop exits
1 parent 02cd55b commit 6cf6402

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎java-does-usb/src/main/java/net/codecrete/usb/macos/MacosAsyncTask.java‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ private void asyncIOCompletionTask(MemorySegment firstSource) {
169169

170170
// loop forever
171171
CoreFoundation.CFRunLoopRun();
172+
LOG.log(WARNING, "unexpected end of CFRunLoopRun");
172173
}
173174

174175
/**

‎java-does-usb/src/main/java/net/codecrete/usb/macos/MacosUsbDeviceRegistry.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import java.util.function.Consumer;
2222

2323
import static java.lang.System.Logger.Level.INFO;
24+
import static java.lang.System.Logger.Level.WARNING;
2425
import static java.lang.foreign.MemorySegment.NULL;
2526
import static java.lang.foreign.ValueLayout.JAVA_INT;
2627
import static java.lang.foreign.ValueLayout.JAVA_LONG;
@@ -103,6 +104,7 @@ protected void monitorDevices() {
103104

104105
// loop forever
105106
CoreFoundation.CFRunLoopRun();
107+
LOG.log(WARNING, "unexpected end of CFRunLoopRun");
106108
}
107109
}
108110

0 commit comments

Comments
 (0)