diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2015-04-08 15:12:53 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2015-04-08 15:12:53 (GMT) |
commit | 928b3fff8acda7edefa30f828a27b3946c57789d (patch) | |
tree | 18c96c915582d2dc0c39200319352c506399b7c5 | |
parent | ce29e87e6fc64269392c807a33e268ca2358c3b3 (diff) | |
download | cpython-928b3fff8acda7edefa30f828a27b3946c57789d.zip cpython-928b3fff8acda7edefa30f828a27b3946c57789d.tar.gz cpython-928b3fff8acda7edefa30f828a27b3946c57789d.tar.bz2 |
Issue #23400: Add notes about the sem_open support of the host OS to
"Pipes and Queues" and "Synchronization between processes" subsections.
Patch by Davin Potts.
-rw-r--r-- | Doc/library/multiprocessing.rst | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/Doc/library/multiprocessing.rst b/Doc/library/multiprocessing.rst index 77cb877..021e3c8 100644 --- a/Doc/library/multiprocessing.rst +++ b/Doc/library/multiprocessing.rst @@ -160,14 +160,6 @@ that only one process prints to standard output at a time:: Without using the lock output from the different processes is liable to get all mixed up. -.. warning:: - - Some of this package's functionality requires a functioning shared semaphore - implementation on the host operating system. Without one, the - :mod:`multiprocessing.synchronize` module will be disabled, and attempts to - import it will result in an :exc:`ImportError`. See - :issue:`3770` for additional information. - Sharing state between processes ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -659,6 +651,15 @@ For an example of the usage of queues for interprocess communication see immediately without waiting to flush enqueued data to the underlying pipe, and you don't care about lost data. + .. note:: + + This class's functionality requires a functioning shared semaphore + implementation on the host operating system. Without one, the + functionality in this class will be disabled, and attempts to + instantiate a :class:`Queue` will result in an :exc:`ImportError`. See + :issue:`3770` for additional information. The same holds true for any + of the specialized queue types listed below. + .. class:: multiprocessing.queues.SimpleQueue() @@ -965,6 +966,14 @@ object -- see :ref:`multiprocessing-managers`. 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 + implementation on the host operating system. Without one, the + :mod:`multiprocessing.synchronize` module will be disabled, and attempts to + import it will result in an :exc:`ImportError`. See + :issue:`3770` for additional information. + Shared :mod:`ctypes` Objects ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |