Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 574c0bcd280b7a37a50532aa4a9debf13e270b38
Ticket: 674367ffffffffffffffffffffffffffffffffff
call for a function that is not thread safe
User & Date: vasiljevic on 2003-01-27 21:15:05
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    Well, returning of values from threads, using the thread::send 
    is already damn-simple. I do not know how to make it simpler. 
    It is either: 
     
      set result [thread::send $tid "set somevar 12"] 
    or 
      thread::send $tid "set somevar 12" result.  
     
    What can be simpler than this? 
     
    If you want to eval the script in an atomic fashion 
    in the other thread, one can perhaps say: 
     
      thread::send -lock myMutex $tid {open file.txt} result 
     
    Would this satisfy your requirement? 
     
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"