Skip to content
Tcl Source Code View Ticket
Login

View Ticket

[update timers];[update fileevents]

Closed / Out of Date219267ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 20 days ago
Descriptionplain2000-10-26 05:09:39
OriginalBugID: 1333 RFE
Version: 8.0.4
SubmitDate: '1999-03-02'
LastModified: '1999-03-02'
Severity: MED
Status: UnAssn
Submitter: pat
ChangedBy: pat
OS: Other
Machine: NA
FixedDate: '2000-10-25'
ClosedDate: '2000-10-25'


Name:
Alexandre FERRIEUX

DesiredBehavior:
    Allow to service only specific subqueues in [update].
    [update idletasks] already exists, for "after idle" scripts.
    Two more subqueues would be very interesting:
     - [update timers] to service "after $ms" scripts only
     - [update fileevents] to service fileevents only
    
    Applications:
     - [update timers] has already shown up on clt as a (wanted) tool for
    execution interleaving (http://x10.dejanews.com/getdoc.xp?AN=393658016)
     - [update fileevents] can be very useful in apps where synchronization
    issues compel the programmer to drain fileevents before doing a specific
    action, but without letting the GUI intersperse its slow
    contributions...
     - more generally, since the event queue is the sum of three subqueues,
    it makes sense to give a tool that separates them !
dkfplain2000-11-08 18:13:54
I'm not all that sure that the implementation can really separate events from files and the (UNIX) GUI all that well.  It would be useful though; an extended version of this might even make some extensions easier to write (IIRC scotty does some wierd stuff here...)
dkfplain2000-11-28 20:39:28
There is a way to separate out GUI events of course; just don't include the X connection fd in the select set.  I'm not sure that Tcl is currently capable of handling that though.  It would also be nice to be able to do the reverse (consume all X events without getting any file events) since I've seen apps where the quantity of data coming over file events was such that the X events were not serviced reliably enough...
dkf Ticket [219267ffff]: 1 change [History diff]2001-02-07 23:12:19
dgp Ticket [219267ffff]: 1 change [History diff]2001-04-04 04:40:53
dgp Ticket [219267ffff]: 2 changes [History diff]2003-11-13 06:09:14
dkfplain2009-08-02 22:39:17
Still think that only servicing X11 or non-X11 events is too hard (in a multi-threaded app there may be multiple connections to the X server, and it's a non-clean split between Tk's and Tcl's responsibilities) but [update timers] is possible, since there you're not mixing up between different low-level event types (I think) and *might* even be occasionally useful (e.g., when you're drowning in events). Not sure how other types of events fit into this.

Assigning back to the original requester for his opinion.
dkf Ticket [219267ffff]: 2 changes [History diff]2009-08-02 22:39:21
serhiy.storchakawiki2026-11-13 11:18:44

TIP 455 (Tcl 9.0) added the -nofileevents, -notimerevents, -noidleevents and -nowindowevents options to vwait, so vwait -timeout 0 -nofileevents -noidleevents -nowindowevents services only the pending timer events, and the same with -notimerevents instead of -nofileevents services only the file events.

Log in (anonymous is fine) to add a comment.