Tcl package Thread source code

Ticket Change Details
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.
Overview

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

  1. Change comment 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. Change login to "anonymous"
  3. Change mimetype to "text/plain"