mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-128033: change PyMutex_LockFast
to take PyMutex
as argument (#128054)
Change `PyMutex_LockFast` to take `PyMutex` as argument.
This commit is contained in:
parent
8a433b683f
commit
91c55085a9
3 changed files with 6 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue