| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
Replace time.time() with time.monotonic() in tests to measure time
delta.
test_zipfile64: display progress every minute (60 secs) rather than
every 5 minutes (5*60 seconds).
(cherry picked from commit 2cf4c202ffeb30787c944365ba54013688b854c2)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
|
|
|
|
|
|
| |
Increase the timeout: give timeout x 4 instead of timeout x 2 to
threads to wait until the Event is set, but reduce the sleep from 500
ms to 250 ms. So the test should be more reliable and faster!
(cherry picked from commit 81950495ba2c36056e0ce48fd37d514816c26747)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
| |
|
|
|
|
|
|
|
|
| |
* fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior
* add test for blocking
* Update threading.rst
* semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
|
| |
|
|
| |
Use _thread.count() to wait until threads exit. The new context
manager prevents the "dangling thread" warning.
|
| |
|
|
|
|
|
| |
Try to fix the "Warning -- threading_cleanup() failed to cleanup 1
threads" warning in test.lock_tests: wait a little bit longer to give
time to the threads to complete.
Warning seen on test_thread and test_importlib.
|
| | |
|
| |\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.
The test was added by Nir Soffer in 6108d30dde21.
Patch by Nir Soffer.
|
| | |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
test_reset_internal_locks was looking at Event's _cond._lock. This
makes it harder to change internals of the Condition object and
makes the test fragile.
The test was added by Nir Soffer in 6108d30dde21.
Patch by Nir Soffer.
|
| |/ |
|
| |\ |
|
| | | |
|
| |\ \
| |/
| |
| | |
Free memory, unlock hanging threads.
|
| | |
| |
| |
| | |
Free memory, unlock hanging threads.
|
| |/ |
|
| |
|
|
| |
delaying the main thread so that it doesn't race ahead of the workers.
|
| | |
|
| |
|
|
|
| |
Most of the import sequence now uses per-module locks rather than the
global import lock, eliminating well-known issues with threads and imports.
|
| |\
| |
| |
| | |
return False when the event was set and cleared right after.
|
| | |
| |
| |
| | |
return False when the event was set and cleared right after.
|
| |\ \
| |/
| |
| | |
to avoid timing-dependent failures.
|
| | |
| |
| |
| | |
to avoid timing-dependent failures.
|
| | |
| |
| |
| |
| | |
threading.get_ident() and document it. This function was used by
_thread.get_ident().
|
| |\ \
| |/
| |
| | |
test_threading.test_waitfor(). Patch written by Charles-François Natali.
|
| | |
| |
| |
| | |
written by Charles-François Natali.
|
| |/
|
|
| |
lock was not acquired.
|
| |\ |
|
| | | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r76138 | antoine.pitrou | 2009-11-06 23:41:14 +0100 (ven., 06 nov. 2009) | 10 lines
Merged revisions 76137 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76137 | antoine.pitrou | 2009-11-06 23:34:35 +0100 (ven., 06 nov. 2009) | 4 lines
Issue #7270: Add some dedicated unit tests for multi-thread synchronization
primitives such as Lock, RLock, Condition, Event and Semaphore.
........
................
r76173 | antoine.pitrou | 2009-11-09 17:08:16 +0100 (lun., 09 nov. 2009) | 11 lines
Merged revisions 76172 via svnmerge from
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()`.
........
................
|
| |
|
|
| |
Windows.
|
| |
|
|
| |
Adding the wait_for() method to threading.Condition
|
| | |
|
| |
|
|
| |
After increasing the default timeout for the barrier, the unittest for the default timeout must be adjusted
|
| |
|
|
| |
Increase the default timout of the barries used in the barrier tests. This should solve unexpected timeouts on some machines.
|
| |
|
|
| |
Add threading.Barrier
|
| |
|
|
| |
primitives' behavior.
|
| |
|
|
| |
`threading.Semaphore` objects. Original patch by Torsten Landschoff.
|
| |
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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()`.
........
|
|
|
svn+ssh://pythondev@svn.python.org/python/trunk
........
r76137 | antoine.pitrou | 2009-11-06 23:34:35 +0100 (ven., 06 nov. 2009) | 4 lines
Issue #7270: Add some dedicated unit tests for multi-thread synchronization
primitives such as Lock, RLock, Condition, Event and Semaphore.
........
|