Tcl package Thread source code

View Ticket
Login
Ticket UUID: f32864afe385ea00a9f86bb1691bb22b0b27b871
Title: Hang in thread:eval
Type: Bug Version: 3.0.1
Submitter: apnadkarni Created on: 2024-12-14 17:26:25
Subsystem: - New Builtin Commands Assigned To: nobody
Priority: 5 Medium Severity: Severe
Status: Closed Last Modified: 2024-12-16 13:04:04
Resolution: Fixed Closed By: apnadkarni
    Closed on: 2024-12-16 13:04:04
Description:
The following script hangs:
----
package require Thread
set mu [thread::mutex create]
thread::eval -lock $mu {puts foo}
thread::mutex destroy $mu
----

As far as I can tell from the documentation, the above should be a valid script. I don't the package well enough so could be pilot error.
User Comments: apnadkarni added on 2024-12-16 13:04:04:
Fixed in [578ae1c881]

apnadkarni added on 2024-12-15 06:03:12:
Proposed fix in branch bug-f32864af.