Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8079443a8de636bcaf81d0f69cb090485f021de9
Ticket: 451328ffffffffffffffffffffffffffffffffff
thread problem with Tcl_GetStringFromObj
User & Date: andreas_kupries on 2001-08-16 08:52:18
Changes

  1. icomment:
    Logged In: YES 
    user_id=75003
    
    Tcl follows the one thread per interp model. This
    means one thread may contain a complete hierarchy
    of interpreters, but all interpreters in that
    hierarchy may only be accessed by their thread and
    _no_ other.
    
    For Tcl_Obj's this implies that an object with a
    refcount > 1 must not be shared between interpreters
    in different threads. Else the complications
    mentioned above arise. To access some information in
    more than one thread it is necessary to duplicate the
    object in question and then transfer this unshared object 
    via an event to the other thread.
    
    
    
  2. login: "andreas_kupries"
  3. mimetype: "text/plain"
  4. username: "andreas_kupries"