mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
gh-125139: use _PyRecursiveMutex
in _thread.RLock
(#125144)
This commit is contained in:
parent
5217328f93
commit
67f6e08147
3 changed files with 63 additions and 122 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue