Skip to content

Commit 5c2f289

Browse files
committed
FastDSS: initial/experimental support for free-threading builds
1 parent a190960 commit 5c2f289

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/_fastdss.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,6 +1027,9 @@ PyMODINIT_FUNC PyInit__fastdss()
10271027
{
10281028
return NULL;
10291029
}
1030+
#ifdef Py_GIL_DISABLED
1031+
PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
1032+
#endif
10301033

10311034
Py_INCREF(&AltDSS_PyContextType);
10321035
if (PyModule_AddObject(m, "AltDSS_PyContext", (PyObject *) &AltDSS_PyContextType) < 0)

0 commit comments

Comments
 (0)