Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 089216e28c9ce32973baec07d81efb29ad0cba59
Ticket: 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits
User & Date: vasiljevic on 2002-07-23 00:53:26
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    1. I've read that the function "vwait" can only wait
    for the exit of a single thread.
    
    The "vwait" waits on the variable. The variable can be 
    set from one or more threads, so by some simple tcl
    wrap functions you can implement pretty powerful 
    thread pool environment.
    
    2. Are you going to provide the "clever wrapping" for
    all users of the TCL thread library?
    
    Yes, I do plan to make some tutorial docs with some simple
    examples, which could be used as a starting point for 
    your own development. This is scheduled for 2.5 version
    which I'd like to release in 2-3 months.
    The 2.4 version is going to be released today or tomorrow
    since I've solved all pending doc and MinGW issues :-)
    
    3. Can a running thread put to "sleep" and wake up
    automatically if one or more other threads have done their
    processing?
    
    Of course. The best way is to use thread::mutex and 
    thread::cond synchronization primitives which are built
    into the extension since 2.2 version. 
    
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"