gh-76785: Improved Subinterpreters Compatibility with 3.12 (1/2) (gh-126704)

These changes makes it easier to backport the _interpreters, _interpqueues, and _interpchannels modules to Python 3.12.

This involves the following:

* rename several structs and typedefs
* add several typedefs
* stop using the PyThreadState.state field directly in parking_lot.c
This commit is contained in:
Eric Snow 2024-11-11 15:58:46 -07:00 committed by GitHub
parent 036930d844
commit a6d48e8f83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 55 additions and 43 deletions

View file

@ -1,8 +1,8 @@
#include "pycore_weakref.h" // _PyWeakref_GET_REF()
typedef struct _xidregistry dlregistry_t;
typedef struct _xidregitem dlregitem_t;
typedef _PyXIData_registry_t dlregistry_t;
typedef _PyXIData_regitem_t dlregitem_t;
// forward