Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0a9bbbdc7e08d5512ede3e2ae46a9932a83a8d14
Ticket: 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits
User & Date: vasiljevic on 2002-07-23 21:24:15
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    7.1 Hey, this little bastard is not there? 
    I'll add that, of course.
    
    7.2 Must a "vwait" as often be called as a thread will store 
    the execution result in the specified variable?
    
    Yes.
    
    Did you call it twice in your example because you created 
    two threads with the same variable "result"? 
    
    Yes.
    
    8. What will happen in a "thread::send" if an error occurs or 
    the TCL function "return" is called before
    the execution result is stored in the specified variable?
    
    Result of the script will ALWAYS be stored in the "result" 
    variable, no matter what happes. Event if the target thread 
    exits in the middle of processing.
    
    9. I will consider this. This introspective capability should 
    be good for statistics and such. I agree. Some of suggested 
    functionality is quite easy to do, but some is really 
    impossible (mutex is_locked, most notably).
    
    10. What functions you're referring to? 
    
    11. Possible (in some situations) but not so simple as it 
    might appear on the first glance. Doing a unlock of 
    a chain of mutexes of notify of a chain of cond vars is
    *very* tricky and I'd say, impossible in most cases. 
    Preserve/release should be easier, though.
    
    ----
    If we continue at this pace, we'll blow the SF storage ;-)
    You can always send me an email directly: 
    [email protected]
    
    
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"