mirror of
https://github.com/python/cpython.git
synced 2025-11-24 12:20:42 +00:00
[3.14] gh-134009: Expose PyMutex_IsLocked in the public C API (gh-134365) (#136971)
Co-authored-by: Sam Gross <colesbury@gmail.com>
This commit is contained in:
parent
11f510167c
commit
8e43b130f7
6 changed files with 33 additions and 7 deletions
|
|
@ -619,3 +619,11 @@ PyMutex_Unlock(PyMutex *m)
|
|||
Py_FatalError("unlocking mutex that is not locked");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#undef PyMutex_IsLocked
|
||||
int
|
||||
PyMutex_IsLocked(PyMutex *m)
|
||||
{
|
||||
return _PyMutex_IsLocked(m);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue