Skip to content

Commit 61f9407

Browse files
authored
Merge branch '3.14' into backport-db098a4-3.14
2 parents ecab12a + 1011c0c commit 61f9407

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Doc/library/multiprocessing.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1419,6 +1419,12 @@ object -- see :ref:`multiprocessing-managers`.
14191419
A solitary difference from its close analog exists: its ``acquire`` method's
14201420
first argument is named *block*, as is consistent with :meth:`Lock.acquire`.
14211421

1422+
.. method:: locked()
1423+
1424+
Return a boolean indicating whether this object is locked right now.
1425+
1426+
.. versionadded:: 3.14
1427+
14221428
.. note::
14231429
On macOS, this is indistinguishable from :class:`Semaphore` because
14241430
``sem_getvalue()`` is not implemented on that platform.
@@ -1580,6 +1586,13 @@ object -- see :ref:`multiprocessing-managers`.
15801586
macOS where ``sem_getvalue()`` is not implemented.
15811587

15821588

1589+
.. method:: locked()
1590+
1591+
Return a boolean indicating whether this object is locked right now.
1592+
1593+
.. versionadded:: 3.14
1594+
1595+
15831596
.. note::
15841597

15851598
On macOS, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with

0 commit comments

Comments
 (0)