diff options
author | Dino Viehland <dinoviehland@meta.com> | 2024-04-04 19:26:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 19:26:07 (GMT) |
commit | 434bc593df4c0274b8afd3c1dcdc9234f469d9bf (patch) | |
tree | 9ff15a94dd14ef903d4bd8249eab45753fd6703e /Include/internal | |
parent | 42205143f8b3211d1392f1d9f2cf6717bdaa5b47 (diff) | |
download | cpython-434bc593df4c0274b8afd3c1dcdc9234f469d9bf.zip cpython-434bc593df4c0274b8afd3c1dcdc9234f469d9bf.tar.gz cpython-434bc593df4c0274b8afd3c1dcdc9234f469d9bf.tar.bz2 |
gh-112075: Make _PyDict_LoadGlobal thread safe (#117529)
Make _PyDict_LoadGlobal threadsafe
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_dict.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/internal/pycore_dict.h b/Include/internal/pycore_dict.h index 5507bdd..fba0dfc 100644 --- a/Include/internal/pycore_dict.h +++ b/Include/internal/pycore_dict.h @@ -97,6 +97,7 @@ extern void _PyDictKeys_DecRef(PyDictKeysObject *keys); * -1 when no entry found, -3 when compare raises error. */ extern Py_ssize_t _Py_dict_lookup(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject **value_addr); +extern Py_ssize_t _Py_dict_lookup_threadsafe(PyDictObject *mp, PyObject *key, Py_hash_t hash, PyObject **value_addr); extern Py_ssize_t _PyDict_LookupIndex(PyDictObject *, PyObject *); extern Py_ssize_t _PyDictKeys_StringLookup(PyDictKeysObject* dictkeys, PyObject *key); |