Tk Source Code

Artifact [a8c46912]
Login

Artifact a8c46912d410836967792a38f3d3458344e6568a588e13fe2abc4807058201b7:

Attachment "threadbare.tcl" to ticket [e0c7091f] added by jal_frezie 2022-09-08 16:19:26.
lappend auto_path /usr/local/lib
package require Thread

set slave [thread::create]

thread::send $slave [list source worker.tcl]
thread::send $slave [list set masterId [thread::id]]

for {set i 0} {$i < 1000} {incr i} {
    puts $i
    thread::send -async $slave [list churn 100000] reply
    vwait reply
}