Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 22de011b883d15f237aeda8d4538ef9d270c749e
Ticket: 597997ffffffffffffffffffffffffffffffffff
async+thread panic
User & Date: msofer on 2002-08-22 21:21:46
Changes

  1. icomment:
    Logged In: YES 
    user_id=148712
    
    Mislabeled ticket, this has nothing to do with async and is
    indeed an "exit before all threads returned": the following
    script shows the same behaviour
    
        lappend auto_path /CVS/thread/unix
        package require Thread
        set i 0
        while {[incr i] <= 2} {
            thread::create "puts $i"
        }
    
    and everything is fixed by adding the following at the end:
    
        # make sure to wait until all threads have returned
        # before exiting [bug #597997]
        while {[llength [thread::names]] > 1} {
            after 100 set x 1
            vwait x
        }
    
    
    
    
    
  2. login: "msofer"
  3. mimetype: "text/plain"
  4. username: "msofer"