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.
1 parent 8612230 commit 137eebeCopy full SHA for 137eebe
Include/internal/pycore_dict.h
@@ -141,6 +141,11 @@ struct _dictkeysobject {
141
/* Kind of keys */
142
uint8_t dk_kind;
143
144
+#ifdef Py_GIL_DISABLED
145
+ /* Lock used to protect shared keys */
146
+ PyMutex dk_mutex;
147
+#endif
148
+
149
/* Version number -- Reset to 0 by any modification to keys */
150
uint32_t dk_version;
151
@@ -150,6 +155,7 @@ struct _dictkeysobject {
155
/* Number of used entries in dk_entries. */
156
Py_ssize_t dk_nentries;
152
157
158
153
159
/* Actual hash table of dk_size entries. It holds indices in dk_entries,
154
160
or DKIX_EMPTY(-1) or DKIX_DUMMY(-2).
161
0 commit comments