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 3f6f8cc commit 2e7ac71Copy full SHA for 2e7ac71
python/google/protobuf/internal/api_implementation.cc
@@ -86,6 +86,13 @@ extern "C" {
86
return INITFUNC_ERRORVAL;
87
}
88
89
+#ifdef Py_GIL_DISABLED
90
+ if (PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED) != 0) {
91
+ Py_DECREF(module);
92
+ return NULL;
93
+ }
94
+#endif // Py_GIL_DISABLED
95
+
96
// Adds the module variable "api_version".
97
if (PyModule_AddIntConstant(
98
module,
0 commit comments