We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03947d0 commit d75d3a2Copy full SHA for d75d3a2
src/_macosx.m
@@ -547,6 +547,8 @@ int mpl_check_modifier(
547
close(channel[0]);
548
}
549
550
+ Py_BEGIN_ALLOW_THREADS
551
+
552
NSDate* date =
553
(timeout > 0.0) ? [NSDate dateWithTimeIntervalSinceNow: timeout]
554
: [NSDate distantFuture];
@@ -559,6 +561,8 @@ int mpl_check_modifier(
559
561
[NSApp sendEvent: event];
560
562
563
564
+ Py_END_ALLOW_THREADS
565
566
if (py_sigint_handler) { PyOS_setsig(SIGINT, py_sigint_handler); }
567
if (sigint_socket) { CFSocketInvalidate(sigint_socket); }
568
if (!error) { close(channel[1]); }
0 commit comments