Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 1a6b688c1e3b7387126bf601b5bc34ed76acc439
Ticket: 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits
User & Date: vasiljevic on 2002-07-03 23:47:54
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    1. In couple of days the 2.4 version of the extension is 
    going to be released. This will include complete 
    documentation in both html and unix man formats.
    
    2. With the 2.4 version, it is possible to post scripts to 
    threads asynchronously and wait for results in the event 
    loop of the poster. This way, thread-pools can
    be implemented. Consider the following example:
    
    set t1 [thread::create]
    set t2 [thread::create]
    
    thread::send -async $t1 "set a 1" result
    thread::send -async $t2 "set b 2" result
    
    for {set i 0} {$i < 2} {incr i} {
      vwait result
    }
    
    With some clever wrapping, you can implement the desired
    functionality on the script level very easily.
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"