Tcl package Thread source code

Ticket Change Details
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2018 Conference, Houston/TX, US, Oct 15-19
Send your abstracts to tclconference@googlegroups.com
or submit via the online form by Aug 20.
Overview

Artifact ID: 8b58801213fbf4a0ce6836a441a93bdbd109dfa7996090818648dfe0e7f98ba7
Ticket: b5709ea9060d17f58ba48110351c964b3408e362
[::thread::send -async] posting order not respected when sending to current thread
User & Date: adrianmedranocalvo 2018-07-31 14:35:32
Changes

  1. Change icomment to:

    Hello sebres,

    thank you for your comments.

    Indeed that's the issue: some [thread::send -async] are being transformed into "after" events, which implies all points you detailed, while other [thread::send -async] do not.

    Mine was a lengthy text, I'm not sure my proposal it's clear. Let me summarize it:

    - I think that each "thread::send -async $tid $script" should be appended to the same queue, so that events for thread $tid are evaluated on the order they were posted.

    - Other events can be handled in whatever order.

    - I think that transforming some "thread::send -async $tid $script" into "after idle" (as it's currently done in Thread 2.8.0) is a misfeature, because it makes "thread::send -async" no longer work as a useful thread-safe queue.

    - I propose removing the code selected in the following link: https://core.tcl-lang.org/thread/artifact?udc=1&ln=2742-2759&name=61003585d6458178&udc=1

    What's your opinion on doing that?

  2. Change login to "adrianmedranocalvo"
  3. Change mimetype to "text/plain"
  4. Change username to "support@prs.de"