8000 Merge pull request #29810 from ngoldbaum/free-threaded-macos · matplotlib/matplotlib@bfbd0b5 · GitHub
[go: up one dir, main page]

Skip to content

Commit bfbd0b5

Browse files
authored
Merge pull request #29810 from ngoldbaum/free-threaded-macos
Declare free-threaded support in MacOS backend extension
2 parents b32de5c + 63e7e4a commit bfbd0b5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_macosx.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,6 +1895,9 @@ - (void)flagsChanged:(NSEvent *)event
18951895
Py_XDECREF(m);
18961896
return NULL;
18971897
}
1898+
#ifdef Py_GIL_DISABLED
1899+
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
1900+
#endif
18981901
return m;
18991902
}
19001903

0 commit comments

Comments
 (0)
0