Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: da91947eb39425e60763d51a65e51a385862fbdc
Ticket: 674367ffffffffffffffffffffffffffffffffff
call for a function that is not thread safe
User & Date: elfring on 2003-11-09 23:26:00
Changes

  1. icomment:
    Logged In: YES 
    user_id=572001
    
    # Would this implementation have the same effect?
    
    namespace eval monitored_executor \
    {
    namespace export do new delete
    
    proc do {id work} \
     {
      return [thread::send $id $work]
     }
    
    proc new {} \
     {
      return [thread::create -preserved]
     }
    
    proc delete (id) \
     {
      thread::release $id
     }
    }
    
    # Did my last point of view from C/C++ make it harder to see the TCL functionality?
    # Can the requested option "-lock" help if the function "send" is synchronously and completely processed?
    
    
  2. login: "elfring"
  3. mimetype: "text/plain"
  4. username: "elfring"