diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2022-11-16 16:54:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 16:54:28 (GMT) |
commit | 01fa907aa8e7c475a76b407f35c635b26c9f47f8 (patch) | |
tree | edf9fe0b39615dcb616ea11046c39a0c0180a7f0 /Include/internal/pycore_context.h | |
parent | 5f55067e238c21de25f09ece9bb24ae8c42d02b4 (diff) | |
download | cpython-01fa907aa8e7c475a76b407f35c635b26c9f47f8.zip cpython-01fa907aa8e7c475a76b407f35c635b26c9f47f8.tar.gz cpython-01fa907aa8e7c475a76b407f35c635b26c9f47f8.tar.bz2 |
gh-81057: Move contextvars-related Globals to _PyRuntimeState (gh-99400)
This is part of the effort to consolidate global variables, to make them easier to manage (and make it easier to later move some of them to PyInterpreterState).
https://github.com/python/cpython/issues/81057
Diffstat (limited to 'Include/internal/pycore_context.h')
-rw-r--r-- | Include/internal/pycore_context.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/internal/pycore_context.h b/Include/internal/pycore_context.h index 1bf4e8f..52dfe3e 100644 --- a/Include/internal/pycore_context.h +++ b/Include/internal/pycore_context.h @@ -18,6 +18,10 @@ void _PyContext_Fini(PyInterpreterState *); /* other API */ +typedef struct { + PyObject_HEAD +} _PyContextTokenMissing; + #ifndef WITH_FREELISTS // without freelists # define PyContext_MAXFREELIST 0 |