Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(127333)

Side by Side Diff: Doc/library/multiprocessing.rst

Issue 10968: threading.Timer should be a class so that it can be derived
Patch Set: Created 8 years, 3 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Doc/library/threading.rst » ('j') | Doc/library/threading.rst » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 :mod:`multiprocessing` --- Process-based parallelism 1 :mod:`multiprocessing` --- Process-based parallelism
2 ==================================================== 2 ====================================================
3 3
4 .. module:: multiprocessing 4 .. module:: multiprocessing
5 :synopsis: Process-based parallelism. 5 :synopsis: Process-based parallelism.
6 6
7 7
8 Introduction 8 Introduction
9 ------------ 9 ------------
10 10
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 856
857 .. class:: BoundedSemaphore([value]) 857 .. class:: BoundedSemaphore([value])
858 858
859 A bounded semaphore object: a clone of :class:`threading.BoundedSemaphore`. 859 A bounded semaphore object: a clone of :class:`threading.BoundedSemaphore`.
860 860
861 (On Mac OS X, this is indistinguishable from :class:`Semaphore` because 861 (On Mac OS X, this is indistinguishable from :class:`Semaphore` because
862 ``sem_getvalue()`` is not implemented on that platform). 862 ``sem_getvalue()`` is not implemented on that platform).
863 863
864 .. class:: Condition([lock]) 864 .. class:: Condition([lock])
865 865
866 A condition variable: a clone of :class:`threading.Condition`. 866 A condition variable: an alias for :class:`threading.Condition`.
867 867
868 If *lock* is specified then it should be a :class:`Lock` or :class:`RLock` 868 If *lock* is specified then it should be a :class:`Lock` or :class:`RLock`
869 object from :mod:`multiprocessing`. 869 object from :mod:`multiprocessing`.
870 870
871 .. class:: Event() 871 .. class:: Event()
872 872
873 A clone of :class:`threading.Event`. 873 A clone of :class:`threading.Event`.
874 This method returns the state of the internal semaphore on exit, so it 874 This method returns the state of the internal semaphore on exit, so it
875 will always return ``True`` except if a timeout is given and the operation 875 will always return ``True`` except if a timeout is given and the operation
876 times out. 876 times out.
(...skipping 1408 matching lines...) Expand 10 before | Expand all | Expand 10 after
2285 :class:`~http.server.SimpleHTTPRequestHandler` instance while sharing a single 2285 :class:`~http.server.SimpleHTTPRequestHandler` instance while sharing a single
2286 listening socket. 2286 listening socket.
2287 2287
2288 .. literalinclude:: ../includes/mp_webserver.py 2288 .. literalinclude:: ../includes/mp_webserver.py
2289 2289
2290 2290
2291 Some simple benchmarks comparing :mod:`multiprocessing` with :mod:`threading`: 2291 Some simple benchmarks comparing :mod:`multiprocessing` with :mod:`threading`:
2292 2292
2293 .. literalinclude:: ../includes/mp_benchmarks.py 2293 .. literalinclude:: ../includes/mp_benchmarks.py
2294 2294
OLDNEW
« no previous file with comments | « no previous file | Doc/library/threading.rst » ('j') | Doc/library/threading.rst » ('J')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+