Kaydet (Commit) 042d6a4f authored tarafından Georg Brandl's avatar Georg Brandl

Correct info for Semaphore.acquire() semantics under OSX.

üst 26da1871
...@@ -839,7 +839,7 @@ object -- see :ref:`multiprocessing-managers`. ...@@ -839,7 +839,7 @@ object -- see :ref:`multiprocessing-managers`.
A bounded semaphore object: a clone of :class:`threading.BoundedSemaphore`. A bounded semaphore object: a clone of :class:`threading.BoundedSemaphore`.
(On Mac OS X this is indistinguishable from :class:`Semaphore` because (On Mac OS X, this is indistinguishable from :class:`Semaphore` because
``sem_getvalue()`` is not implemented on that platform). ``sem_getvalue()`` is not implemented on that platform).
.. class:: Condition([lock]) .. class:: Condition([lock])
...@@ -881,9 +881,8 @@ object -- see :ref:`multiprocessing-managers`. ...@@ -881,9 +881,8 @@ object -- see :ref:`multiprocessing-managers`.
specifies a timeout in seconds. If *block* is ``False`` then *timeout* is specifies a timeout in seconds. If *block* is ``False`` then *timeout* is
ignored. ignored.
.. note:: On Mac OS X, ``sem_timedwait`` is unsupported, so calling ``acquire()`` with
On OS/X ``sem_timedwait`` is unsupported, so timeout arguments for the a timeout will emulate that function's behavior using a sleeping loop.
aforementioned :meth:`acquire` methods will be ignored on OS/X.
.. note:: .. note::
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment