mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
[3.12] Delete stale note about mp.Lock.acquire/SIGINT (GH-120929) (GH-122079)
Delete stale note about mp.Lock.acquire/SIGINT (GH-120929)
(cherry picked from commit 0dcbc83853
)
Co-authored-by: Andrey Mishchenko <mishchea@gmail.com>
This commit is contained in:
parent
5f46a726ea
commit
9343c6d323
1 changed files with 0 additions and 11 deletions
|
@ -1466,17 +1466,6 @@ object -- see :ref:`multiprocessing-managers`.
|
|||
On macOS, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with
|
||||
a timeout will emulate that function's behavior using a sleeping loop.
|
||||
|
||||
.. note::
|
||||
|
||||
If the SIGINT signal generated by :kbd:`Ctrl-C` arrives while the main thread is
|
||||
blocked by a call to :meth:`BoundedSemaphore.acquire`, :meth:`Lock.acquire`,
|
||||
:meth:`RLock.acquire`, :meth:`Semaphore.acquire`, :meth:`Condition.acquire`
|
||||
or :meth:`Condition.wait` then the call will be immediately interrupted and
|
||||
:exc:`KeyboardInterrupt` will be raised.
|
||||
|
||||
This differs from the behaviour of :mod:`threading` where SIGINT will be
|
||||
ignored while the equivalent blocking calls are in progress.
|
||||
|
||||
.. note::
|
||||
|
||||
Some of this package's functionality requires a functioning shared semaphore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue