home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / pc / exsource / 21_7.tcl < prev    next >
Text File  |  2003-04-16  |  218b  |  14 lines

  1. #
  2. # Example 21-7
  3. # Executing commands after thread::wait returns.
  4. #
  5.  
  6. set t [thread::create {
  7. puts "Starting worker thread"
  8. thread::wait
  9. # This is executed after the thread is released
  10. puts "Exiting worker thread"
  11. }]
  12.  
  13.  
  14.