Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2fc35bda8ca9f184b2804158a3eae6f81c4e571e
Ticket: 2511424fffffffffffffffffffffffffffffffff
condition variable error in thread-21.16
User & Date: dgp on 2009-01-15 21:25:32
Changes

  1. assignee changed to: "vasiljevic"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    ==== thread-21.16 thread::cond - delete waited variable FAILED
    ==== Contents of test case:
    
        ThreadReap
        set tid [thread::create]
        set emutex [thread::mutex create]
        set cond [thread::cond create]
        thread::send -async $tid [subst {
            thread::mutex lock $emutex
            thread::cond wait $cond $emutex 500
            thread::mutex unlock $emutex
        }]
        update
        after 10
        set c1 [catch {thread::cond destroy $cond} r1]
        thread::cond notify $cond
        after 1000
        set c2 [catch {thread::cond destroy $cond} r2]
        ThreadReap
        thread::mutex destroy $emutex
        list $c1 $c2 $r1 $r2
    
    ---- Test generated error; Return code was: 1
    ---- Return code should have been one of: 0 2
    ---- errorInfo: no such condition variable "cid30"
        while executing
    "thread::cond notify $cond"
        ("uplevel" body line 14)
        invoked from within
    "uplevel 1 $script"
    ---- errorCode: NONE
    ==== thread-21.16 FAILED
    
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "dgp"
  10. subsystem changed to: "80. Thread Package"
  11. title changed to: "condition variable error in thread-21.16"
  12. type changed to: "Bug"