Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: a9a831df07318dfe2447460ac67ee840a4ea23519d323f1dc4bd0c5e4406eba4
Ticket: ac7592e73c10d04b9bd0303308ac3db2396ad6e9
idle events are never processed when a "writable" handler on a nonblocking channel dominates the event queue
User & Date: apnadkarni on 2024-04-08 02:33:04
Changes

  1. icomment:
    Nathan wrote: *I an IO event should never be considered as an idle event, then Ashok's idea of requiring that refchans user [after 0 [list after idle]] is a bad idea too. But with the way that the idle works in Tcl, I'm not sure that sebres' criticism is valid.*
    
    I do not recall suggesting "after 0 after idle" and cannot find where I wrote that. I thought I wrote "after idle after 0". If I did state the former, it was in error and should have been the latter.
    
    If processing events off the event queue, and desiring to reschedule again off the event queue without starving the idle queue, my thinking is that "after idle after 0" is the correct idiom. Conversely, "after 0 after idle" if running on the idle queue and rescheduling back on the idle queue without starving the event queue.
    
  2. login: "apnadkarni"
  3. mimetype: "text/x-markdown"