mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-134745: Change PyThread_allocate_lock() implementation to PyMutex (#134747)
Co-authored-by: Sam Gross <colesbury@gmail.com>
This commit is contained in:
parent
45c6c48afc
commit
ebf6d13567
7 changed files with 86 additions and 491 deletions
|
@ -48,6 +48,9 @@ typedef enum _PyLockFlags {
|
|||
|
||||
// Handle signals if interrupted while waiting on the lock.
|
||||
_PY_LOCK_HANDLE_SIGNALS = 2,
|
||||
|
||||
// Fail if interrupted by a signal while waiting on the lock.
|
||||
_PY_FAIL_IF_INTERRUPTED = 4,
|
||||
} _PyLockFlags;
|
||||
|
||||
// Lock a mutex with an optional timeout and additional options. See
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue