diff options
author | Dino Viehland <dinoviehland@meta.com> | 2024-04-22 05:57:05 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-22 05:57:05 (GMT) |
commit | 8b541c017ea92040add608b3e0ef8dc85e9e6060 (patch) | |
tree | 880ff7c97041f374d21197b1b486686f2d64c998 /Include/cpython/object.h | |
parent | 1446024124fb98c3051199760380685f8a2fd127 (diff) | |
download | cpython-8b541c017ea92040add608b3e0ef8dc85e9e6060.zip cpython-8b541c017ea92040add608b3e0ef8dc85e9e6060.tar.gz cpython-8b541c017ea92040add608b3e0ef8dc85e9e6060.tar.bz2 |
gh-112075: Make instance attributes stored in inline "dict" thread safe (#114742)
Make instance attributes stored in inline "dict" thread safe on free-threaded builds
Diffstat (limited to 'Include/cpython/object.h')
-rw-r--r-- | Include/cpython/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/object.h b/Include/cpython/object.h index 2797051..a8f5782 100644 --- a/Include/cpython/object.h +++ b/Include/cpython/object.h @@ -493,6 +493,7 @@ do { \ PyAPI_FUNC(void *) PyObject_GetItemData(PyObject *obj); PyAPI_FUNC(int) PyObject_VisitManagedDict(PyObject *obj, visitproc visit, void *arg); +PyAPI_FUNC(void) _PyObject_SetManagedDict(PyObject *obj, PyObject *new_dict); PyAPI_FUNC(void) PyObject_ClearManagedDict(PyObject *obj); #define TYPE_MAX_WATCHERS 8 |