diff options
author | Kumar Aditya <kumaraditya@python.org> | 2024-12-18 15:19:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-18 15:19:00 (GMT) |
commit | 91c55085a959016250f1877e147ef379bb97dd12 (patch) | |
tree | 6fcdaae195ac3b2ebe8c91ac07c6f63352672bc9 /Python | |
parent | 8a433b683fecafe1cb04469a301df2b4618167d0 (diff) | |
download | cpython-91c55085a959016250f1877e147ef379bb97dd12.zip cpython-91c55085a959016250f1877e147ef379bb97dd12.tar.gz cpython-91c55085a959016250f1877e147ef379bb97dd12.tar.bz2 |
gh-128033: change `PyMutex_LockFast` to take `PyMutex` as argument (#128054)
Change `PyMutex_LockFast` to take `PyMutex` as argument.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval_macros.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h index 9250b86..398816d 100644 --- a/Python/ceval_macros.h +++ b/Python/ceval_macros.h @@ -300,7 +300,7 @@ GETITEM(PyObject *v, Py_ssize_t i) { // avoid any potentially escaping calls (like PyStackRef_CLOSE) while the // object is locked. #ifdef Py_GIL_DISABLED -# define LOCK_OBJECT(op) PyMutex_LockFast(&(_PyObject_CAST(op))->ob_mutex._bits) +# define LOCK_OBJECT(op) PyMutex_LockFast(&(_PyObject_CAST(op))->ob_mutex) # define UNLOCK_OBJECT(op) PyMutex_Unlock(&(_PyObject_CAST(op))->ob_mutex) #else # define LOCK_OBJECT(op) (1) |