diff options
author | hobbs <hobbs> | 1999-10-21 02:17:43 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-10-21 02:17:43 (GMT) |
commit | 1ed0bec0caaa8524e4f1ced4e7c0718322ed44dc (patch) | |
tree | 7b90e259557aafc0fc008e407a22852a227c15d9 /library/tcltest/tcltest.tcl | |
parent | 5febb5a71e435b42fe6bf68500c49ee8cfde341b (diff) | |
download | tcl-1ed0bec0caaa8524e4f1ced4e7c0718322ed44dc.zip tcl-1ed0bec0caaa8524e4f1ced4e7c0718322ed44dc.tar.gz tcl-1ed0bec0caaa8524e4f1ced4e7c0718322ed44dc.tar.bz2 |
Changed update to 'after 1' to cause a true sleep in the current
thread, avoiding numerous superfluous thread send calls.
Diffstat (limited to 'library/tcltest/tcltest.tcl')
-rw-r--r-- | library/tcltest/tcltest.tcl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/library/tcltest/tcltest.tcl b/library/tcltest/tcltest.tcl index 0fd2090..55631aa 100644 --- a/library/tcltest/tcltest.tcl +++ b/library/tcltest/tcltest.tcl @@ -12,7 +12,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: tcltest.tcl,v 1.16 1999/10/20 01:27:05 jenn Exp $ +# RCS: @(#) $Id: tcltest.tcl,v 1.17 1999/10/21 02:17:43 hobbs Exp $ package provide tcltest 1.0 @@ -1860,9 +1860,12 @@ proc ::tcltest::threadReap {} { foreach tid [testthread names] { if {$tid != $::tcltest::mainThread} { catch {testthread send -async $tid {testthread exit}} - update } } + ## Enter a bit a sleep to give the threads enough breathing + ## room to kill themselves off, otherwise the end up with a + ## massive queue of repeated events + after 1 } testthread errorproc ThreadError return [llength [testthread names]] |