summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * Issue #18418: After fork(), reinit all threads states, not only active ones.Charles-François Natali2013-08-301-1/+1
| | | | | | | | Patch by A. Jesse Jiryu Davis.
* | #18705: merge with 3.3.Ezio Melotti2013-08-171-1/+1
|\ \ | |/
| * #18705: fix a number of typos. Patch by Févry Thibault.Ezio Melotti2013-08-171-1/+1
| |
* | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)Brett Cannon2013-07-041-3/+3
| |
* | Issue #18200: Update the stdlib (except tests) to useBrett Cannon2013-06-141-3/+3
| | | | | | | | ModuleNotFoundError.
* | Issue #11714: Use 'with' statements to assure a Semaphore releases aSerhiy Storchaka2013-04-221-20/+18
|\ \ | |/ | | | | condition variable. Original patch by Thomas Rachel.
| * Issue #11714: Use 'with' statements to assure a Semaphore releases aSerhiy Storchaka2013-04-221-20/+18
| | | | | | | | condition variable. Original patch by Thomas Rachel.
* | Merge #17435: Don't use mutable default values in Timer.R David Murray2013-03-301-4/+4
|\ \ | |/ | | | | Patch by Denver Coneybeare with some test modifications by me.
| * Issue #17435: Don't use mutable default values in Timer.R David Murray2013-03-301-4/+4
| | | | | | | | Patch by Denver Coneybeare with some test modifications by me.
* | Fix importRaymond Hettinger2013-03-211-2/+1
| |
* | Improve variable namesRaymond Hettinger2013-03-111-5/+5
| |
* | Issue #17385: Fix quadratic behavior in threading.ConditionRaymond Hettinger2013-03-111-2/+8
| |
* | Update code to increment and decrement using the cleaner += 1 and -= 1 style.Raymond Hettinger2013-03-101-4/+4
|/
* Issue #14428, #14397: Implement the PEP 418Victor Stinner2012-04-291-1/+5
| | | | | | | | | * Rename time.steady() to time.monotonic() * On Windows, time.monotonic() uses GetTickCount/GetTickCount64() instead of QueryPerformanceCounter() * time.monotonic() uses CLOCK_HIGHRES if available * Add time.get_clock_info(), time.perf_counter() and time.process_time() functions
* Issue #14308: Fix an exception when a dummy thread is in the threading ↵Antoine Pitrou2012-04-191-0/+3
|\ | | | | | | module's active list after a fork().
| * Issue #14308: Fix an exception when a "dummy" thread is in the threading ↵Antoine Pitrou2012-04-191-0/+3
| | | | | | | | module's active list after a fork().
* | Issue #14222: Use the new time.steady() function instead of time.time() forVictor Stinner2012-03-151-1/+1
| | | | | | | | | | timeout in queue and threading modules to not be affected of system time update.
* | Close #13550: Remove the debug machinery from the threading module: removeVictor Stinner2012-03-031-134/+18
| | | | | | | | verbose arguments from all threading classes and functions.
* | merge 3.2Benjamin Peterson2012-02-041-1/+0
|\ \ | |/
| * remove unused importBenjamin Peterson2012-02-041-1/+0
| |
* | Issue #13502: threading: Fix a race condition in Event.wait() that made itCharles-François Natali2012-01-071-3/+4
|\ \ | |/ | | | | return False when the event was set and cleared right after.
| * Issue #13502: threading: Fix a race condition in Event.wait() that made itCharles-François Natali2012-01-071-3/+4
| | | | | | | | return False when the event was set and cleared right after.
| * Issue #11870: threading: Properly reinitialize threads internal locks andCharles-François Natali2011-12-181-7/+4
| | | | | | | | condition variables to avoid deadlocks in child processes.
* | Issue #11870: threading: Properly reinitialize threads internal locks andCharles-François Natali2011-12-181-7/+4
| | | | | | | | condition variables to avoid deadlocks in child processes.
* | Merge with 3.2.Ezio Melotti2011-10-191-1/+1
|\ \ | |/
| * Remove duplication.Ezio Melotti2011-10-191-1/+1
| |
* | add ThreadError to threading.__all__ (closes #12679)Benjamin Peterson2011-08-021-1/+1
| |
* | Remove indirection in threading (issue #10968).Éric Araujo2011-07-271-22/+7
| | | | | | | | | | | | | | | | | | | | | | | | The public names (Thread, Condition, etc.) used to be factory functions returning instances of hidden classes (_Thread, _Condition, etc.), because (if Guido recalls correctly) this code pre-dates the ability to subclass extension types. It is now possible to inherit from Thread and other classes, without having to import the private underscored names like multiprocessing did. A doc update will follow: a patch is under discussion on the issue.
* | Issue #12573: Add resource checks for dangling Thread and Process objects.Antoine Pitrou2011-07-151-0/+4
|\ \ | |/
| * Issue #12573: Add resource checks for dangling Thread and Process objects.Antoine Pitrou2011-07-151-0/+4
| |
* | Close #12028: Make threading._get_ident() public, rename it toVictor Stinner2011-05-301-11/+10
| | | | | | | | | | threading.get_ident() and document it. This function was used by _thread.get_ident().
* | Issue #11223: Replace threading._info() by sys.thread_infoVictor Stinner2011-04-301-2/+1
| |
* | Issue #11915: threading.RLock()._release_save() raises a RuntimeError if theVictor Stinner2011-04-241-0/+2
| | | | | | | | lock was not acquired.
* | Issue #11223: Add threading._info() function providing informations about theVictor Stinner2011-04-191-1/+2
| | | | | | | | | | | | | | | | | | thread implementation. Skip test_lock_acquire_interruption() and test_rlock_acquire_interruption() of test_threadsignals if a thread lock is implemented using a POSIX mutex and a POSIX condition variable. A POSIX condition variable cannot be interrupted by a signal (e.g. on Linux, the futex system call is restarted).
* | Issue #6064: Add a `daemon` keyword argument to the threading.ThreadAntoine Pitrou2011-02-251-14/+7
|/ | | | | | and multiprocessing.Process constructors in order to override the default behaviour of inheriting the daemonic property from the current thread/process.
* Remove out-of-date commentRaymond Hettinger2011-01-161-4/+0
|
* Add entry for Barrier objects.Raymond Hettinger2011-01-111-3/+2
|
* Fix the new bug introduced in the r87710 fix for issue 6643. DummyThreadGregory P. Smith2011-01-041-4/+13
| | | | | | | deletes its _block attribute, deal with that. This prevents an uncaught exception in a thread during test_thread. This refactors a bit to better match what I did in the r87727 backport to 2.7.
* issue6643 - Two locks held within the threading module on each thread instanceGregory P. Smith2011-01-031-0/+4
| | | | | needed to be reinitialized after fork(). Adds tests to confirm that they are and that a potential deadlock and crasher bug are fixed (platform dependant).
* Issue #4188: Avoid creating dummy thread objects when logging operationsAntoine Pitrou2010-12-171-2/+8
| | | | from the threading module (with the internal verbose flag activated).
* Issue 10260Kristján Valur Jónsson2010-11-181-7/+32
| | | | Adding the wait_for() method to threading.Condition
* issue 8777Kristján Valur Jónsson2010-10-281-0/+172
| | | | Add threading.Barrier
* #10218: return timeout status from Condition.wait, mirroring other ↵Georg Brandl2010-10-281-0/+2
| | | | primitives' behavior.
* Rip out old testing code that was inlined in threading.Brett Cannon2010-07-231-88/+0
| | | | Partially closes issue 9346. Thanks Brian Brazil for the patch.
* Issue #850728: Add a *timeout* parameter to the `acquire()` method ofAntoine Pitrou2010-04-171-2/+12
| | | | `threading.Semaphore` objects. Original patch by Torsten Landschoff.
* Issue #7316: the acquire() method of lock objects in the :mod:`threading`Antoine Pitrou2010-04-141-18/+7
| | | | | | module now takes an optional timeout argument in seconds. Timeout support relies on the system threading library, so as to avoid a semi-busy wait loop.
* Merged revisions 79817 via svnmerge fromSenthil Kumaran2010-04-061-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r79817 | senthil.kumaran | 2010-04-06 08:53:33 +0530 (Tue, 06 Apr 2010) | 2 lines Fix Issue8262 - changing RuntimeError wording to "Threads can only be started once" ........
* Merged revisions 78517 via svnmerge fromGregory P. Smith2010-02-281-1/+6
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r78517 | gregory.p.smith | 2010-02-28 10:36:09 -0800 (Sun, 28 Feb 2010) | 3 lines Issue #7481: When a threading.Thread failed to start it would leave the instance stuck in initial state and present in threading.enumerate(). ........
* Issue #3001: Add a C implementation of recursive locks which is used byAntoine Pitrou2009-11-101-2/+12
| | | | | | default when instantiating a `Threading.RLock` object. This makes recursive locks as fast as regular non-recursive locks (previously, they were slower by 10x to 15x).
* Merged revisions 76172 via svnmerge fromAntoine Pitrou2009-11-091-8/+10
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r76172 | antoine.pitrou | 2009-11-09 17:00:11 +0100 (lun., 09 nov. 2009) | 5 lines Issue #7282: Fix a memory leak when an RLock was used in a thread other than those started through `threading.Thread` (for example, using `thread.start_new_thread()`. ........