mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
GH-95909: Make _PyArg_Parser
initialization thread safe (GH-95958)
This commit is contained in:
parent
48174fa0b9
commit
9b30b965f0
3 changed files with 48 additions and 12 deletions
|
@ -14,6 +14,9 @@ extern "C" {
|
|||
#include "pycore_interp.h" // PyInterpreterState
|
||||
#include "pycore_unicodeobject.h" // struct _Py_unicode_runtime_ids
|
||||
|
||||
struct _getargs_runtime_state {
|
||||
PyThread_type_lock mutex;
|
||||
};
|
||||
|
||||
/* ceval state */
|
||||
|
||||
|
@ -114,6 +117,7 @@ typedef struct pyruntimestate {
|
|||
|
||||
struct _ceval_runtime_state ceval;
|
||||
struct _gilstate_runtime_state gilstate;
|
||||
struct _getargs_runtime_state getargs;
|
||||
|
||||
PyPreConfig preconfig;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue