Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 4c2ebc249c756bd7ea77ba6be5b5981baf24fcd9
Ticket: 990500ffffffffffffffffffffffffffffffffff
NotifierThreadProc missing TclpThreadExit at end
User & Date: vasiljevic on 2004-07-16 15:40:39
Changes

  1. icomment:
    Logged In: YES 
    user_id=95086
    
    I believe Joe is right. Every thread created by pthread_create
    should eventually call pthread_exit at the end of its life.
    Otherwise pthread library leaks.
    At this particular spot this is not very tragic for tclsh-like
    applications where main thread and the notifier thread
    exit just at the end of the app. But in systems loading 
    and finalizing Tcl library as a subsystem, this may pose
    memory problems (leaks). 
    
    My oppinion is: go ahead and add the TclpThreadExit
    at the end. 
    
    
  2. login: "vasiljevic"
  3. mimetype: "text/plain"
  4. username: "vasiljevic"