Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 102b9fd3ddbc0c6845e75f06e6e0db7d201a45aa
Ticket: 577014ffffffffffffffffffffffffffffffffff
documentation; wait on thread exits
User & Date: vasiljevic on 2002-07-23 14:47:35
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    5. It seems that you duplicate some TCL functions (e. g. for
    lists and arrays) to make them an "atomic operation".
    Are you going to continue this way with functions like
    "string", "regexp" or "keyed list" from the TclX extension?
    
    The keyed-list is already done, but I did not include it
    in the current release since it needs some more testing.
    I did not look into others because I had no need for them.
    Mainly because strings are strings and you're not gaining 
    too much. For all Tcl datatypes which *have* internal 
    object representation, this can be a big gain. For all others
    it is just a simple convenience of saving yourself one mutex.
    
    1. I would like to read more about error handling. 
    Are any errors or exceptions thrown by the thread and tsv
    functions?
    
    Generally, syntax errors. thread::send reports error when 
    the posted script results in error. Most tsv::* functions report
    error when they are not able to find the array or the 
    element, but I think this should be already documented. If 
    not, please report and I'll correct it.
    
    2. Is it possible to divide the function list into two sections
    "thread" and "tsv"?
    Good point. I did not like it this way either in the first place.
    But one has to have some room for future improvements ;-)
    
    3. Can each entry in the synopsis link to the function
    description?
    
    Unfortunately, this is TMML and I must play by the rules.
    TMML does not provide such funtionality AFAIK.
    But you can always post a question to TMML group
    (on SF).
    
    4. You offer protection for thread shared variables. Does it
    make sense to extend this technique for TCL scripts?
    
    You can to this with a simple mutex arround the script.
    The "locked" script evaluation should really be the feature
    of the Tcl core, IMHO.  But, this is tricky stuff and might 
    leed to recursive locks, reader/writer locks and all other 
    sort of things. If you were the developer, what path would 
    you take? Just curious...
    
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"