Tcl package Thread source code

Ticket Change Details
Login
Overview

Artifact ID: 77390e4695354b6d3a383a214efa51e501e38db3c0a4ed551ace02dc88521ab6
Ticket: 4b9dc05e4ecc9fda484386a41e58fa480490b6e1
documentaion of thread::send command
User & Date: anonymous 2019-06-20 21:20:12
Changes

  1. comment changed to:
    In https://www.tcl.tk/man/tcl8.6/ThreadCmd/thread.htm,
    there seems to be a small formatting glitch in the example provided for thread::send command.
    
    In my browser it's rendered like this :
    
    set t1 [thread::create]
        set t2 [thread::create]
        thread::send -async $t1 "set a 1" result
        thread::send -async $t2 "set b 2" result
        for {set i 0} {$i < 2} {incr i} {
            vwait result
        }
    
    I suppose the indentation below the first line isn't intended
    (and may produce a false reasoning if the lack of "{" isn't noticed at the end of the first line (for bad eyes...)
    
    Patch :
    
    set t1 [thread::create]
    set t2 [thread::create]
    thread::send -async $t1 "set a 1" result
    thread::send -async $t2 "set b 2" result
    for {set i 0} {$i < 2} {incr i} {
         vwait result
        }
    
    
    Thank you
    
  2. login: "anonymous"
  3. mimetype: "text/plain"