Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 56fd35da70aefb72e01e17fcd4727d8983c544804ba4afacd54bfe4fa607f32b
Ticket: 61c01e0edb08a9ed905aefdf17ce113da303c77b
likely race condition with package require in several threads causing error
User & Date: anonymous on 2025-05-04 21:37:13
Changes

  1. icomment:
    There's a slight error in the reporting, the code needs to change the thread script in each thread, just before the thread is created:
    
    	regsub -all taskname1,error $script $name,error script;# substitute in the actual task name
    	set tid [thread::create $script]
    
    otherwise it would report that the first thread had the error in all cases. In actuality, any of the 3 threads can get the error.
    
  2. login: "anonymous"
  3. mimetype: "text/plain"