Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 91dbb06547b2dd7f2c9304bee9651b16f32a4a47
Ticket: 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits
User & Date: vasiljevic on 2002-08-06 06:11:11
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Well, nobody ever claimed so :) 
     
    To wait for a thread exit, one should create a joinable 
    thread and then use thread::join. This is the proper way 
    to wait for a thread to exit. This, however works only for 
    Tcl8.4+. Another way is to do a "thread::release -wait" 
    which will work for 8.3 as well. 
     
    To "vwait" on a variable which is set by the remote thread 
    is just an asynchronous message passing between the  
    target thread and the caller thread. This is done in order to 
    simplify interaction between threads where one (the caller) 
    is doing something in the event loop, wants to delegate some 
    work to target thread and "vwait" on the result to come back 
    without blocking his event loop. 
     
    So, these two things are entirey different. 
    Now, what was your *exact* question? 
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"