mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Issue #13964: signal.sigtimedwait() timeout is now a float instead of a tuple
Add a private API to convert an int or float to a C timespec structure.
This commit is contained in:
parent
1c13f84f55
commit
643cd68ea4
7 changed files with 106 additions and 20 deletions
|
@ -369,12 +369,11 @@ The :mod:`signal` module defines the following functions:
|
|||
.. versionadded:: 3.3
|
||||
|
||||
|
||||
.. function:: sigtimedwait(sigset, (timeout_sec, timeout_nsec))
|
||||
.. function:: sigtimedwait(sigset, timeout)
|
||||
|
||||
Like :func:`sigtimedwait`, but takes a tuple of ``(seconds, nanoseconds)``
|
||||
as an additional argument specifying a timeout. If both *timeout_sec* and
|
||||
*timeout_nsec* are specified as :const:`0`, a poll is performed. Returns
|
||||
:const:`None` if a timeout occurs.
|
||||
Like :func:`sigwaitinfo`, but takes an additional *timeout* argument
|
||||
specifying a timeout. If *timeout* is specified as :const:`0`, a poll is
|
||||
performed. Returns :const:`None` if a timeout occurs.
|
||||
|
||||
Availability: Unix (see the man page :manpage:`sigtimedwait(2)` for further
|
||||
information).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue