8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
threading.local
1 parent 2009e25 commit e059aa6Copy full SHA for e059aa6
Include/cpython/pystate.h
@@ -192,6 +192,14 @@ struct _ts {
192
PyObject *previous_executor;
193
194
uint64_t dict_global_version;
195
+
196
+ /* Used to store/retrieve `threading.local` keys/values for this thread */
197
+ PyObject *threading_local_key;
198
199
+ /* Used by `threading.local`s to be remove keys/values for dying threads.
200
+ The PyThreadObject must hold the only reference to this value.
201
+ */
202
+ PyObject *threading_local_sentinel;
203
};
204
205
#ifdef Py_DEBUG
0 commit comments