mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-128384: Add locking to warnings.py. (gh-128386)
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
This commit is contained in:
parent
d906bde250
commit
1c13c56a34
6 changed files with 237 additions and 128 deletions
|
@ -14,7 +14,7 @@ struct _warnings_runtime_state {
|
|||
PyObject *filters; /* List */
|
||||
PyObject *once_registry; /* Dict */
|
||||
PyObject *default_action; /* String */
|
||||
PyMutex mutex;
|
||||
_PyRecursiveMutex lock;
|
||||
long filters_version;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue