summaryrefslogtreecommitdiffstats
path: root/Include/internal/pycore_import.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/internal/pycore_import.h')
-rw-r--r--Include/internal/pycore_import.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Include/internal/pycore_import.h b/Include/internal/pycore_import.h
index 7e8d73b..8ba9666 100644
--- a/Include/internal/pycore_import.h
+++ b/Include/internal/pycore_import.h
@@ -21,6 +21,17 @@ struct _import_runtime_state {
This is initialized lazily in _PyImport_FixupExtensionObject().
Modules are added there and looked up in _imp.find_extension(). */
PyObject *extensions;
+ /* The global import lock. */
+ struct {
+ PyThread_type_lock mutex;
+ unsigned long thread;
+ int level;
+ } lock;
+ struct {
+ int import_level;
+ _PyTime_t accumulated;
+ int header;
+ } find_and_load;
};