diff options
author | Kumar Aditya <kumaraditya@python.org> | 2024-10-14 08:36:31 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 08:36:31 (GMT) |
commit | 67f6e08147bc005e460d82fcce85bf5d56009cf5 (patch) | |
tree | 57a73834eb7ab251b52dc4e4a48561bb5b6c3fb5 /Include/internal | |
parent | 5217328f93f599755bd70418952392c54f705a71 (diff) | |
download | cpython-67f6e08147bc005e460d82fcce85bf5d56009cf5.zip cpython-67f6e08147bc005e460d82fcce85bf5d56009cf5.tar.gz cpython-67f6e08147bc005e460d82fcce85bf5d56009cf5.tar.bz2 |
gh-125139: use `_PyRecursiveMutex` in `_thread.RLock` (#125144)
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_lock.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Include/internal/pycore_lock.h b/Include/internal/pycore_lock.h index cd7deda..57cbce8 100644 --- a/Include/internal/pycore_lock.h +++ b/Include/internal/pycore_lock.h @@ -160,8 +160,9 @@ typedef struct { PyAPI_FUNC(int) _PyRecursiveMutex_IsLockedByCurrentThread(_PyRecursiveMutex *m); PyAPI_FUNC(void) _PyRecursiveMutex_Lock(_PyRecursiveMutex *m); +extern PyLockStatus _PyRecursiveMutex_LockTimed(_PyRecursiveMutex *m, PyTime_t timeout, _PyLockFlags flags); PyAPI_FUNC(void) _PyRecursiveMutex_Unlock(_PyRecursiveMutex *m); - +extern int _PyRecursiveMutex_TryUnlock(_PyRecursiveMutex *m); // A readers-writer (RW) lock. The lock supports multiple concurrent readers or // a single writer. The lock is write-preferring: if a writer is waiting while |