Does anyone here know how to use the ttrace package? I have done many
searches in this group on Google and I haven't turned up any examples
but I've turned up a lot of folks who have the same problem I'm having.
Here's a script I'm running:
lappend auto_path ./lib
package require Thread
package require Ttrace
set cThread {
lappend auto_path ./lib
package require Ttrace
after 2000
for { set i 0 } { $i < 10 } { incr i } {
test
}
}
thread::create $cThread
ttrace::eval {
proc test { } { puts "Hello from thread: [thread::id]" }
}
for { set i 0 } { $i < 10 } { incr i } {
after 1500
test
}
exit 0
Every time I try to execute the test procedure defined using
ttrace::eval, the thread spawned by thread::create says it's an
undefined proc. What gives? If someone here know how to use the
ttrace package, please enlighten me.
Thanks,
Andrew
That's because its author (Zoran Vasiljevic) and the primary people
using it are elsewhere. The principle places you should look and ask
are:
Naviserver:
http://sourceforge.net/mail/?group_id=130646
http://sourceforge.net/projects/naviserver/
AOLserver:
http://aolserver.sourceforge.net/lists.php
http://aolserver.sourceforge.net/
OpenACS:
http://openacs.org/forums/message-view?message_id=318768
http://openacs.org/forums/forum-view?forum_id=14013
http://openacs.org/forums/forum-view?forum_id=14014
Tcl Threads Extension:
http://sourceforge.net/mailarchive/forum.php?forum_id=24972
http://tcl.sourceforge.net/