File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments