[3.13] gh-117511: Make PyMutex public in the non-limited API (GH-117731) (#120800)

(cherry picked from commit 3af7263037)
This commit is contained in:
Sam Gross 2024-06-20 12:00:25 -04:00 committed by GitHub
parent 7c7aa5a99c
commit 3cb6c4cd60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 185 additions and 110 deletions

View file

@ -14,7 +14,7 @@ _PyCriticalSection_BeginSlow(_PyCriticalSection *c, PyMutex *m)
c->prev = (uintptr_t)tstate->critical_section;
tstate->critical_section = (uintptr_t)c;
_PyMutex_LockSlow(m);
PyMutex_Lock(m);
c->mutex = m;
}