Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 0ed5fb9ca4b86ee7d498bf12b04b14baee3b95af
Ticket: 770053ffffffffffffffffffffffffffffffffff
Tcl_CreateThread breaks notifier thread refcount
User & Date: vasiljevic on 2004-07-16 04:25:11
Changes

  1. closedate changed to: "2004-07-15T21:25:11"
  2. closer changed to: "vasiljevic"
  3. icomment:
    Logged In: YES 
    user_id=95086
    
    The notifier ref-counting problem is now fixed by conditionaly
    finalizing the notifier. 
    If the notifier for the thread has never been initialized by a 
    call to TclInitNotifier, it will not be finalized by the call
    to TclFinalizeNotifier. Simple as that.
    For this to work, an already existing threadId element of 
    the private TSD key from generic/tclNotify.c is used.
    
    This is now fixed in core-8-4-branch and in cvs head.
    Lets see whose toes we're trampling on now... 
    
    This one corrects the ref-counting problem but all API
    users should be aware of the fact that inter-thread
    communication using Tcl_ThreadAlert() and bros is *not* 
    possible for threads created with Tcl_CreateThread which
    have no Tcl interpreter assigned. 
    
    
    
  4. login: "vasiljevic"
  5. mimetype: "text/plain"
  6. resolution changed to: "Fixed"
  7. status changed to: "Closed"
  8. username: "vasiljevic"