[Python-checkins] r75695 - sandbox/trunk/ccbench/ccbench.py
antoine.pitrou
python-checkins at python.org
Sun Oct 25 19:14:15 CET 2009
Author: antoine.pitrou
Date: Sun Oct 25 19:14:14 2009
New Revision: 75695
Log:
Make all threads daemonic
Modified:
sandbox/trunk/ccbench/ccbench.py
Modified: sandbox/trunk/ccbench/ccbench.py
==============================================================================
--- sandbox/trunk/ccbench/ccbench.py (original)
+++ sandbox/trunk/ccbench/ccbench.py Sun Oct 25 19:14:14 2009
@@ -226,6 +226,7 @@
for i in range(nthreads):
threads.append(threading.Thread(target=run))
for t in threads:
+ t.setDaemon(True)
t.start()
# We don't want measurements to include thread startup overhead,
# so we arrange for timing to start after all threads are ready.
@@ -329,6 +330,7 @@
for i in range(nthreads):
threads.append(threading.Thread(target=run))
for t in threads:
+ t.setDaemon(True)
t.start()
# Wait for threads to be ready
with ready_cond:
More information about the Python-checkins
mailing list