Skip to content

Commit 14307cb

Browse files
committed
declare that the GIL isn't used in the fsevents extension
1 parent 16c44ab commit 14307cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/watchdog_fsevents.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,5 +960,8 @@ PyInit__watchdog_fsevents(void){
960960
}
961961
watchdog_module_add_attributes(module);
962962
watchdog_module_init();
963+
#ifdef Py_GIL_DISABLED
964+
PyUnstable_Module_SetGIL(module, Py_MOD_GIL_NOT_USED);
965+
#endif
963966
return module;
964967
}

0 commit comments

Comments
 (0)