summaryrefslogtreecommitdiffstats
path: root/Include/internal
diff options
context:
space:
mode:
authorKumar Aditya <kumaraditya@python.org>2024-10-14 08:36:31 (GMT)
committerGitHub <noreply@github.com>2024-10-14 08:36:31 (GMT)
commit67f6e08147bc005e460d82fcce85bf5d56009cf5 (patch)
tree57a73834eb7ab251b52dc4e4a48561bb5b6c3fb5 /Include/internal
parent5217328f93f599755bd70418952392c54f705a71 (diff)
downloadcpython-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.h3
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