Commit Graph

80 Commits

Author SHA1 Message Date
R David Murray ef4d286770 #10968: commit threading doc changes and corresponding whatsnew entry.
It is unfortunate that the '_' names were not kept as aliases, and that RLock
was not also converted to a class, but it is now too late to change either of
those things for 3.3.
2012-10-06 14:35:35 -04:00
Ezio Melotti 8b61611309 #15865: merge with 3.2. 2012-09-08 20:49:18 +03:00
Eli Bendersky e08824c300 Remove :noindex: for threading.Thread which killed all reference links to it 2012-07-13 09:01:57 +03:00
Antoine Pitrou fc6acccbaf Remove outdated statements about threading and imports. 2012-05-18 13:57:04 +02:00
R David Murray dd95974509 #14823: Simplify threading.Lock.acquire argument discussion. 2012-05-17 09:14:28 -04:00
R David Murray f7a6615719 #14823: Simplify threading.Lock.acquire argument discussion. 2012-05-17 09:13:30 -04:00
Antoine Pitrou 1c94ff8b68 Improve the threading.Condition docs. 2012-04-11 19:38:27 +02:00
Antoine Pitrou f6cd9b2d46 Improve the threading.Condition docs. 2012-04-11 19:37:56 +02:00
Antoine Pitrou 61d85bab4d Merge 2012-04-10 22:51:26 +02:00
Antoine Pitrou b96a354556 Small improvements to the threading docs: better publicize support for the with statement. 2012-04-10 22:47:55 +02:00
Antoine Pitrou 2c9f1042c6 Fix some markup in the threading docs. 2012-04-10 22:35:53 +02:00
Antoine Pitrou 126aef768d Issue #8799: Fix and improve the threading.Condition documentation. 2012-04-10 22:24:05 +02:00
Sandro Tosi 5d1c2f0702 Issue #14502: merge with 3.2 2012-04-05 22:53:21 +02:00
Sandro Tosi fee3fc748e Issue #14502: release() and unlocked lock generates a ThreadError 2012-04-05 22:51:54 +02:00
Georg Brandl 9a13b432e7 Replace ThreadError by RuntimeError: the former is now an obsolete alias of the latter. 2012-04-05 09:53:04 +02:00
Charles-François Natali ded0348c08 Issue #13502: threading: Fix a race condition in Event.wait() that made it
return False when the event was set and cleared right after.
2012-01-07 18:24:56 +01:00
Charles-François Natali 61d28d6a74 Issue #13502: threading: Fix a race condition in Event.wait() that made it
return False when the event was set and cleared right after.
2012-01-07 18:26:39 +01:00
Eli Bendersky bf9d34ce7e Issue 12767: document the argument of threading.Condition.notify 2011-11-12 20:46:54 +02:00
Eli Bendersky d44af82e62 Issue #12767: documenting threading.Condition.notify 2011-11-12 20:44:25 +02:00
Ezio Melotti e130a52d8a Remove duplication. 2011-10-19 10:58:56 +03:00
Ezio Melotti f10644983e Merge with 3.2. 2011-10-19 11:06:26 +03:00
Victor Stinner 2a12974bca Close #12028: Make threading._get_ident() public, rename it to
threading.get_ident() and document it. This function was used by
_thread.get_ident().
2011-05-30 23:02:52 +02:00
Victor Stinner d5c355ccc7 Issue #11223: Replace threading._info() by sys.thread_info 2011-04-30 14:53:09 +02:00
Victor Stinner 754851f456 Issue #11223: Add threading._info() function providing informations about the
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).
2011-04-19 23:58:51 +02:00
Antoine Pitrou d6d17c58af No need to put this at top 2011-02-28 22:04:51 +00:00
Antoine Pitrou 0bd4deba38 Issue #6064: Add a `daemon` keyword argument to the threading.Thread
and multiprocessing.Process constructors in order to override the
default behaviour of inheriting the daemonic property from the current
thread/process.
2011-02-25 22:07:43 +00:00
Brian Curtin bd0c897332 #11083 typo: RuntimeException -> RuntimeError 2011-01-31 19:35:02 +00:00
Raymond Hettinger 5cee47f321 Add entry for Barrier objects. 2011-01-11 19:59:46 +00:00
Raymond Hettinger 4f707fd316 Separate source link from main text. 2011-01-10 19:54:11 +00:00
Raymond Hettinger 1048094037 Move source links to consistent location and remove wordy, big yellow boxes. 2011-01-10 03:26:08 +00:00
Raymond Hettinger 7088abdca6 Revert r87821 which moved the source link to the wrong section (from the module intro covering the module to a section on thread imports). 2011-01-07 21:54:18 +00:00
Antoine Pitrou 39e352cb46 Put link to source at the end. There's nothing edificating in threading.py. 2011-01-07 18:33:07 +00:00
Georg Brandl a572476a2a #10846: fix typo. 2011-01-06 19:28:18 +00:00
Antoine Pitrou 003428158b Elaborate about the GIL. 2011-01-06 16:31:28 +00:00
Antoine Pitrou 810023db3e Issue #8844: Regular and recursive lock acquisitions can now be interrupted
by signals on platforms using pthreads.  Patch by Reid Kleckner.
2010-12-15 22:59:16 +00:00
Antoine Pitrou 64a467d790 Homogenize the "optional OS services" menu 2010-12-12 20:34:49 +00:00
Kristján Valur Jónsson 6331520950 Issue 10260
Adding the wait_for() method to threading.Condition
2010-11-18 12:46:39 +00:00
Éric Araujo 6e6cb8e0e4 Provide links to Python source where the code is short, readable and
informative adjunct to the docs.  Forward-port of Raymond's r86225 and
r86245 using the new source reST role added in #10334.
2010-11-16 19:13:50 +00:00
Georg Brandl 5bc168600a Review new Barrier docs. 2010-10-28 13:07:50 +00:00
Kristján Valur Jónsson 3be00037d6 issue 8777
Add threading.Barrier
2010-10-28 09:43:10 +00:00
Georg Brandl b9a4391754 #10218: return timeout status from Condition.wait, mirroring other primitives' behavior. 2010-10-28 09:03:20 +00:00
Georg Brandl f285bcca28 Be consistent in the spelling of thread-safe(ty). 2010-10-19 21:07:16 +00:00
Georg Brandl 6faee4e2ce #9911: doc copyedits. 2010-09-21 14:48:28 +00:00
Georg Brandl 179249f493 #9689: add links from overview to in-depth class API descriptions. 2010-08-26 14:30:15 +00:00
Georg Brandl 67b21b7547 Consistency check for versionadded/changed directives. 2010-08-17 15:07:14 +00:00
Brett Cannon a57edd0e9e Clarify the wording for threading.is_alive() to not suggest something is
"roughly" done.

Closes issue 9339. Thanks Brian Brazil for the patch.
2010-07-23 12:26:35 +00:00
Antoine Pitrou adbc009779 Add version{added,changed} for lock timeout support. 2010-04-19 14:05:51 +00:00
Antoine Pitrou 0454af9b54 Issue #850728: Add a *timeout* parameter to the `acquire()` method of
`threading.Semaphore` objects.  Original patch by Torsten Landschoff.
2010-04-17 23:51:58 +00:00
Antoine Pitrou 7c3e577395 Issue #7316: the acquire() method of lock objects in the :mod:`threading`
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.
2010-04-14 15:44:10 +00:00
Ezio Melotti f8754a60a8 Update versionadded/changed. 2010-03-21 07:16:43 +00:00