Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd75d3a2

Browse files
greglucasQuLogic
authored andcommitted
Merge pull request#27755 from ksunden/release_gil_macos_event_loop
Allow threads during macos event loop(cherry picked from commitb50843d)
1 parent03947d0 commitd75d3a2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎src/_macosx.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,8 @@ int mpl_check_modifier(
547547
close(channel[0]);
548548
}
549549

550+
Py_BEGIN_ALLOW_THREADS
551+
550552
NSDate* date =
551553
(timeout >0.0) ? [NSDatedateWithTimeIntervalSinceNow: timeout]
552554
: [NSDatedistantFuture];
@@ -559,6 +561,8 @@ int mpl_check_modifier(
559561
[NSAppsendEvent: event];
560562
}
561563

564+
Py_END_ALLOW_THREADS
565+
562566
if (py_sigint_handler) {PyOS_setsig(SIGINT, py_sigint_handler); }
563567
if (sigint_socket) {CFSocketInvalidate(sigint_socket); }
564568
if (!error) {close(channel[1]); }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp