A New (C) API For Extensions that Need Runtime-Global Locks

How about a pair of new module slots combined with some ref. counting mechanism in for example the import machinery? Py_mod_global_init and Py_mod_global_exit?

1 Like