Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge spelling and grammar fixes from 3.5 | Martin Panter | 2016-08-05 | 1 | -1/+1 |
|\ | |||||
| * | Fix spelling and grammar in documentation and code comments | Martin Panter | 2016-08-04 | 1 | -1/+1 |
| | | |||||
* | | Issue #27076: Merge spelling from 3.5 | Martin Panter | 2016-05-26 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #27076: Doc, comment and tests spelling fixes | Martin Panter | 2016-05-26 | 1 | -1/+1 |
| | | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä. | ||||
* | | Closes #26987: Merge with 3.5 | Zachary Ware | 2016-05-09 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | Issue #26987: Correct implementation to match comment | Zachary Ware | 2016-05-09 | 1 | -1/+1 |
| | | | | | | | | | | This was inadvertently changed in 644b677c2ae5 to use self._stderr instead of _sys.stderr. | ||||
* | | Issue #23883: Add missing APIs to __all__; patch by Jacek Kołodziej | Martin Panter | 2015-11-14 | 1 | -3/+5 |
|/ | |||||
* | merge 3.4 (#25362) | Benjamin Peterson | 2015-10-11 | 1 | -12/+3 |
|\ | |||||
| * | use the with statement for locking the internal condition (closes #25362) | Benjamin Peterson | 2015-10-11 | 1 | -12/+3 |
| | | | | | | | | Patch by Nir Soffer. | ||||
* | | merge 3.4 (#25319) | Benjamin Peterson | 2015-10-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | reinitialize an Event's Condition with a regular lock (closes #25319) | Benjamin Peterson | 2015-10-06 | 1 | -1/+1 |
| | | |||||
* | | Merge: #11866: Eliminate race condition in the computation of names for new ↵ | R David Murray | 2014-10-04 | 1 | -5/+4 |
|\ \ | |/ | | | | | threads. | ||||
| * | #11866: Eliminate race condition in the computation of names for new threads. | R David Murray | 2014-10-04 | 1 | -5/+4 |
| | | | | | | | | Original patch by Peter Saveliev. | ||||
* | | Issue #22423: Unhandled exception in thread no longer causes unhandled | Serhiy Storchaka | 2014-09-21 | 1 | -8/+8 |
|\ \ | |/ | | | | | AttributeError when sys.stderr is None. | ||||
| * | Issue #22423: Unhandled exception in thread no longer causes unhandled | Serhiy Storchaka | 2014-09-21 | 1 | -8/+8 |
| | | | | | | | | AttributeError when sys.stderr is None. | ||||
* | | Issue #22043: time.monotonic() is now always available | Victor Stinner | 2014-09-02 | 1 | -4/+1 |
| | | | | | | | | | | threading.Lock.acquire(), threading.RLock.acquire() and socket operations now use a monotonic clock, instead of the system clock, when a timeout is used. | ||||
* | | Issue #22185: Fix an occasional RuntimeError in threading.Condition.wait() ↵ | Antoine Pitrou | 2014-08-29 | 1 | -5/+6 |
|\ \ | |/ | | | | | | | | | caused by mutation of the waiters queue without holding the lock. Patch by Doug Zongker. | ||||
| * | Issue #22185: Fix an occasional RuntimeError in threading.Condition.wait() ↵ | Antoine Pitrou | 2014-08-29 | 1 | -5/+6 |
| | | | | | | | | | | | | caused by mutation of the waiters queue without holding the lock. Patch by Doug Zongker. | ||||
* | | Issue 21137: Better repr for threading.Lock() | Raymond Hettinger | 2014-05-26 | 1 | -2/+8 |
|/ | |||||
* | Issue #20976: pyflakes: Remove unused imports | Victor Stinner | 2014-03-20 | 1 | -1/+0 |
| | |||||
* | Remove stray semicolon | Antoine Pitrou | 2014-03-17 | 1 | -1/+1 |
| | |||||
* | Changed a comment to end grammar bikeshedding ;-) | Tim Peters | 2013-10-26 | 1 | -1/+1 |
| | |||||
* | Fiddled Thread.join() to be a little simpler. Kinda ;-) | Tim Peters | 2013-10-26 | 1 | -4/+4 |
| | |||||
* | Issue #19399: fix sporadic test_subprocess failure. | Tim Peters | 2013-10-26 | 1 | -1/+4 |
| | | | | | | Change Thread.join() with a negative timeout to just return. The behavior isn't documented then, but this restores previous behavior. | ||||
* | merge with 3.3 | Georg Brandl | 2013-10-13 | 1 | -39/+375 |
|\ | |||||
| * | Closes #17375: port new threading docstrings from 2.7. | Georg Brandl | 2013-10-13 | 1 | -39/+375 |
| | | |||||
* | | Issue 19158: a rare race in BoundedSemaphore could allow .release() too often. | Tim Peters | 2013-10-09 | 1 | -3/+5 |
|\ \ | |/ | |||||
| * | Issue 19158: a rare race in BoundedSemaphore could allow .release() too often. | Tim Peters | 2013-10-09 | 1 | -3/+5 |
| | | |||||
* | | Get "stopped" back into repr(Thread) when appropriate. | Tim Peters | 2013-09-09 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | | Due to recent changes, a Thread doesn't know that it's over before someone calls .join() or .is_alive(). That meant repr(Thread) continued to include "started" (and not "stopped") before one of those methods was called, even if hours passed since the thread ended. Repaired that. | ||||
* | | Another stab at the thread cleanup patch. | Tim Peters | 2013-09-09 | 1 | -3/+26 |
| | | | | | | | | | | | | | | | | | | | | Antoine Pitrou found a variation that worked for him on the thread+fork tests, and added an important self._is_stopped = True to the after-fork code. I confess I don't know why things passed before. But then mixing fork with threads is insane ;-) | ||||
* | | Backed out changeset 1f5a7853680c | Tim Peters | 2013-09-09 | 1 | -26/+5 |
| | | | | | | | | Unixy buildbots were failing the thread + fork tests :-( | ||||
* | | Minor cleanup of the new scheme for detecting thread termination. | Tim Peters | 2013-09-09 | 1 | -5/+26 |
| | | | | | | | | Documented some obscurities, and assert'ed ._stop()'s crucial precondition. | ||||
* | | Issue 18984: Remove ._stopped Event from Thread internals. | Tim Peters | 2013-09-08 | 1 | -30/+29 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The fix for issue 18808 left us checking two things to be sure a Thread was done: an Event (._stopped) and a mutex (._tstate_lock). Clumsy & brittle. This patch removes the Event, leaving just a happy lock :-) The bulk of the patch removes two excruciating tests, which were verifying sanity of the internals of the ._stopped Event after a fork. Thanks to Antoine Pitrou for verifying that's the only real value these tests had. One consequence of moving from an Event to a mutex: waiters (threads calling Thread.join()) used to block each on their own unique mutex (internal to the ._stopped event), but now all contend on the same mutex (._tstate_lock). These approaches have different performance characteristics on different platforms. I don't think it matters in this context. | ||||
* | | Issue #18808 again: fix the after-fork logic for not-yet-started or ↵ | Antoine Pitrou | 2013-09-08 | 1 | -9/+7 |
| | | | | | | | | | | | | already-stopped threads. (AFAICT, in theory, we must reset all the locks, not just those in use) | ||||
* | | Issue 18808: blind attempt to repair some buildbot failures. | Tim Peters | 2013-09-08 | 1 | -1/+6 |
| | | | | | | | | | | | | | | test_is_alive_after_fork is failing on some old Linux kernels, but passing on all newer ones. Since virtually anything can go wrong with locks when mixing threads with fork, replace the most likely cause with a redundant simple data member. | ||||
* | | Issue #18808: Thread.join() now waits for the underlying thread state to be ↵ | Antoine Pitrou | 2013-09-07 | 1 | -32/+55 |
| | | | | | | | | | | | | destroyed before returning. This prevents unpredictable aborts in Py_EndInterpreter() when some non-daemon threads are still running. | ||||
* | | Add docstring for threading.main_thread(). | Andrew Svetlov | 2013-09-04 | 1 | -0/+5 |
| | | |||||
* | | Issue #18882: Add threading.main_thread() function. | Andrew Svetlov | 2013-09-04 | 1 | -16/+20 |
| | | |||||
* | | Issue #18418: After fork(), reinit all threads states, not only active ones. | Charles-François Natali | 2013-08-30 | 1 | -1/+1 |
|\ \ | |/ | | | | | Patch by A. Jesse Jiryu Davis. | ||||
| * | Issue #18418: After fork(), reinit all threads states, not only active ones. | Charles-François Natali | 2013-08-30 | 1 | -1/+1 |
| | | | | | | | | Patch by A. Jesse Jiryu Davis. | ||||
* | | #18705: merge with 3.3. | Ezio Melotti | 2013-08-17 | 1 | -1/+1 |
|\ \ | |/ | |||||
| * | #18705: fix a number of typos. Patch by Févry Thibault. | Ezio Melotti | 2013-08-17 | 1 | -1/+1 |
| | | |||||
* | | Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a) | Brett Cannon | 2013-07-04 | 1 | -3/+3 |
| | | |||||
* | | Issue #18200: Update the stdlib (except tests) to use | Brett Cannon | 2013-06-14 | 1 | -3/+3 |
| | | | | | | | | ModuleNotFoundError. | ||||
* | | Issue #11714: Use 'with' statements to assure a Semaphore releases a | Serhiy Storchaka | 2013-04-22 | 1 | -20/+18 |
|\ \ | |/ | | | | | condition variable. Original patch by Thomas Rachel. | ||||
| * | Issue #11714: Use 'with' statements to assure a Semaphore releases a | Serhiy Storchaka | 2013-04-22 | 1 | -20/+18 |
| | | | | | | | | condition variable. Original patch by Thomas Rachel. | ||||
* | | Merge #17435: Don't use mutable default values in Timer. | R David Murray | 2013-03-30 | 1 | -4/+4 |
|\ \ | |/ | | | | | Patch by Denver Coneybeare with some test modifications by me. | ||||
| * | Issue #17435: Don't use mutable default values in Timer. | R David Murray | 2013-03-30 | 1 | -4/+4 |
| | | | | | | | | Patch by Denver Coneybeare with some test modifications by me. | ||||
* | | Fix import | Raymond Hettinger | 2013-03-21 | 1 | -2/+1 |
| | | |||||
* | | Improve variable names | Raymond Hettinger | 2013-03-11 | 1 | -5/+5 |
| | |